Class BinaryMutation
java.lang.Object
org.apache.commons.math3.genetics.BinaryMutation
- All Implemented Interfaces:
MutationPolicy
Mutation for
BinaryChromosomes. Randomly changes one gene.- Since:
- 2.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BinaryMutation
public BinaryMutation()
-
-
Method Details
-
mutate
Mutate the given chromosome. Randomly changes one gene.- Specified by:
mutatein interfaceMutationPolicy- Parameters:
original- the original chromosome.- Returns:
- the mutated chromosome.
- Throws:
MathIllegalArgumentException- iforiginalis not an instance ofBinaryChromosome.
-