Package org.apache.commons.math.genetics
Class RandomKeyMutation
java.lang.Object
org.apache.commons.math.genetics.RandomKeyMutation
- All Implemented Interfaces:
MutationPolicy
Mutation operator for
RandomKey
s. Changes a randomly chosen element
of the array representation to a random value uniformly distributed in [0,1].- Since:
- 2.0
- Version:
- $Revision: 983921 $ $Date: 2010-08-10 12:46:06 +0200 (mar. 10 août 2010) $
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RandomKeyMutation
public RandomKeyMutation()
-
-
Method Details
-
mutate
Mutate the given chromosome.- Specified by:
mutate
in interfaceMutationPolicy
- Parameters:
original
- the original chromosome.- Returns:
- the mutated chromomsome.
- Throws:
IllegalArgumentException
- iforiginal
is not aRandomKey
instance
-