org.apache.commons.math.genetics
public class RandomKeyMutation extends Object implements MutationPolicy
RandomKey
s. Changes a randomly chosen element
of the array representation to a random value uniformly distributed in [0,1].Constructor and Description |
---|
RandomKeyMutation() |
public Chromosome mutate(Chromosome original)
mutate
in interface MutationPolicy
original
- the original chromosome.IllegalArgumentException
- if original
is not a
RandomKey
instanceCopyright (c) 2003-2014 Apache Software Foundation