Package org.apache.commons.math.genetics
Class BinaryMutation
java.lang.Object
org.apache.commons.math.genetics.BinaryMutation
- All Implemented Interfaces:
MutationPolicy
Mutation for
BinaryChromosome
s. Randomly changes one gene.- Since:
- 2.0
- Version:
- $Revision: 811685 $ $Date: 2009-09-05 19:36:48 +0200 (sam. 05 sept. 2009) $
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BinaryMutation
public BinaryMutation()
-
-
Method Details
-
mutate
Mutate the given chromosome. Randomly changes one gene.- Specified by:
mutate
in interfaceMutationPolicy
- Parameters:
original
- the original chromosome.- Returns:
- the mutated chromomsome.
-