public class BinaryMutation extends Object implements MutationPolicy
BinaryChromosome
s. Randomly changes one gene.Constructor and Description |
---|
BinaryMutation() |
Modifier and Type | Method and Description |
---|---|
Chromosome |
mutate(Chromosome original)
Mutate the given chromosome.
|
public Chromosome mutate(Chromosome original) throws MathIllegalArgumentException
mutate
in interface MutationPolicy
original
- the original chromosome.MathIllegalArgumentException
- if original
is not an instance of BinaryChromosome
.Jas4pp 1.5 © Java Analysis Studio for Particle Physics