public abstract class MutateDoubleElementwise extends MutateDouble
normalize, random
Constructor and Description |
---|
MutateDoubleElementwise(org.opt4j.core.common.random.Rand random,
NormalizeDouble normalize)
Constructs a
MutateDoubleElementwise . |
Modifier and Type | Method and Description |
---|---|
protected abstract double |
mutateElement(double element,
double lb,
double ub,
double p)
Mutate one element of the list.
|
protected void |
mutateList(org.opt4j.core.genotype.DoubleGenotype vector,
double p)
The mutate internal function.
|
mutate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOperatorType
public MutateDoubleElementwise(org.opt4j.core.common.random.Rand random, NormalizeDouble normalize)
MutateDoubleElementwise
.random
- the random number generatornormalize
- the normalizerprotected void mutateList(org.opt4j.core.genotype.DoubleGenotype vector, double p)
MutateDouble
mutateList
in class MutateDouble
vector
- the vector of double valuesp
- the mutation rateprotected abstract double mutateElement(double element, double lb, double ub, double p)
element
- the elementlb
- the lower boundub
- the upper boundp
- the mutation rate