public class MutateDoublePolynomial extends MutateDoubleElementwise
Modifier and Type | Field and Description |
---|---|
protected double |
eta |
normalize, random
Constructor and Description |
---|
MutateDoublePolynomial(org.opt4j.core.common.random.Rand random,
NormalizeDouble normalize,
double eta)
Constructs a
MutateDoubleGauss with a Rand random number
generator, a NormalizeDouble , and an eta value. |
Modifier and Type | Method and Description |
---|---|
protected double |
mutateElement(double x,
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 MutateDoublePolynomial(org.opt4j.core.common.random.Rand random, NormalizeDouble normalize, double eta)
MutateDoubleGauss
with a Rand
random number
generator, a NormalizeDouble
, and an eta value.random
- the random number generatornormalize
- the normalizereta
- the eta valueprotected double mutateElement(double x, double lb, double ub, double p)
MutateDoubleElementwise
mutateElement
in class MutateDoubleElementwise
x
- the elementlb
- the lower boundub
- the upper boundp
- the mutation rate