public class MutateDoubleGauss extends MutateDoubleElementwise
MutateDoubleGauss
.Modifier and Type | Field and Description |
---|---|
protected double |
sigma |
normalize, random
Constructor and Description |
---|
MutateDoubleGauss(org.opt4j.core.common.random.Rand random,
NormalizeDouble normalize,
double sigma)
Constructs a
MutateDoubleGauss . |
Modifier and Type | Method and Description |
---|---|
protected double |
mutateElement(double element,
double lb,
double ub,
double p)
Mutate one element of the list.
|
mutateList
mutate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOperatorType
@Inject public MutateDoubleGauss(org.opt4j.core.common.random.Rand random, NormalizeDouble normalize, double sigma)
MutateDoubleGauss
.random
- the random number generatornormalize
- the normalizersigma
- the sigma valueprotected double mutateElement(double element, double lb, double ub, double p)
MutateDoubleElementwise
mutateElement
in class MutateDoubleElementwise
element
- the elementlb
- the lower boundub
- the upper boundp
- the mutation rate