Top Description Constructors Methods
org.apache.commons.math3.genetics

public Class RandomKeyMutation

extends Object
implements MutationPolicy
Class Inheritance
All Implemented Interfaces
org.apache.commons.math3.genetics.MutationPolicy
Imports
java.util.ArrayList, .List, org.apache.commons.math3.exception.MathIllegalArgumentException, org.apache.commons.math3.exception.util.LocalizedFormats

Mutation operator for RandomKeys. Changes a randomly chosen element of the array representation to a random value uniformly distributed in [0,1].
Since
2.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Chromosome
mutate(final Chromosome
the original chromosome.
original
)

Implements org.apache.commons.math3.genetics.MutationPolicy.mutate.

Mutate the given chromosome.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RandomKeyMutationback to summary
public RandomKeyMutation()

Method Detail

mutateback to summary
public Chromosome mutate(final Chromosome original) throws MathIllegalArgumentException

Implements org.apache.commons.math3.genetics.MutationPolicy.mutate.

Doc from org.apache.commons.math3.genetics.MutationPolicy.mutate.

Mutate the given chromosome.

Parameters
original:Chromosome

the original chromosome.

Returns:Chromosome

the mutated chromosome.

Exceptions
MathIllegalArgumentException:
if original is not a RandomKey instance