de.kumpe.hadooptimizer.impl
Class GaussianMutator
java.lang.Object
de.kumpe.hadooptimizer.impl.GaussionMutatorBase
de.kumpe.hadooptimizer.impl.GaussianMutator
- All Implemented Interfaces:
- EsWrappableMutator, Mutator<double[]>, NeedsRandomGenerator, Serializable
public final class GaussianMutator
- extends GaussionMutatorBase
- implements Mutator<double[]>
Mutates a double
array by adding gaussian random numbers. The passed
array will not be modified, a new array will be returned.
- Author:
- Christian Kumpe
- See Also:
- Serialized Form
Method Summary |
double[] |
mutate(double[] individual)
Creates a mutant of the given individual. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GaussianMutator
public GaussianMutator()
GaussianMutator
public GaussianMutator(double standardDeviation)
mutate
public double[] mutate(double[] individual)
- Description copied from interface:
Mutator
- Creates a mutant of the given individual.
The general contract is to not modify the given individual, but return
a mutated copy.
- Specified by:
mutate
in interface Mutator<double[]>
- Parameters:
individual
- the individual to mutate
- Returns:
- the mutant of the passed individual
Copyright © 2011 Christian Kumpe. All Rights Reserved.