public class RandomKeyMutation extends java.lang.Object implements MutationPolicy
RandomKey
s. Changes a randomly chosen element
of the array representation to a random value uniformly distributed in [0,1].Constructor and Description |
---|
RandomKeyMutation() |
Modifier and Type | Method and Description |
---|---|
Chromosome |
mutate(Chromosome original)
Mutate the given chromosome.
|
public Chromosome mutate(Chromosome original)
mutate
in interface MutationPolicy
original
- the original chromosome.java.lang.IllegalArgumentException
- if original
is not a
RandomKey
instance"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"