|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.kumpe.hadooptimizer.impl.GaussionMutatorBase
public abstract class GaussionMutatorBase
Base class for Mutators based on gaussian random number.
Field Summary | |
---|---|
protected org.apache.commons.math.random.RandomGenerator |
randomGenerator
|
protected double |
standardDeviation
|
Constructor Summary | |
---|---|
GaussionMutatorBase(double standardDeviation)
|
Method Summary | |
---|---|
double |
getMinIncrement()
Returns the minimal allowed increment. |
double[] |
mutate(double[] individual,
double standardDeviation)
Mutates the given individual with the specified increment. |
protected double |
nextGaussian(double standardDeviation)
Produces a normal distributed random number with the given standard deviation. |
void |
setRandomGenerator(org.apache.commons.math.random.RandomGenerator randomGenerator)
Injects a RandomGenerator instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient org.apache.commons.math.random.RandomGenerator randomGenerator
protected final double standardDeviation
Constructor Detail |
---|
public GaussionMutatorBase(double standardDeviation)
Method Detail |
---|
public void setRandomGenerator(org.apache.commons.math.random.RandomGenerator randomGenerator)
NeedsRandomGenerator
RandomGenerator
instance.
setRandomGenerator
in interface NeedsRandomGenerator
randomGenerator
- the new RandomGenerator
instancepublic double[] mutate(double[] individual, double standardDeviation)
EsWrappableMutator
mutate
in interface EsWrappableMutator
individual
- the individual to mutatestandardDeviation
- the increment for the mutation (mainly the standard deviation
of a normal distributed random number)
protected final double nextGaussian(double standardDeviation)
public double getMinIncrement()
EsWrappableMutator
getMinIncrement
in interface EsWrappableMutator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |