MutationPolicypublic class RandomKeyMutation extends Object implements MutationPolicy
RandomKeys. Changes a randomly chosen element
of the array representation to a random value uniformly distributed in [0,1].| Constructor | Description |
|---|---|
RandomKeyMutation() |
| Modifier and Type | Method | Description |
|---|---|---|
Chromosome |
mutate(Chromosome original) |
Mutate the given chromosome.
|
public Chromosome mutate(Chromosome original) throws MathIllegalArgumentException
mutate in interface MutationPolicyoriginal - the original chromosome.MathIllegalArgumentException - if original is not a RandomKey instanceCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.