org.apache.commons.math.genetics
public class BinaryMutation extends java.lang.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)
mutate
in interface MutationPolicy
original
- the original chromosome.Copyright (c) 2003-2016 Apache Software Foundation