public class MutateDoubleNonUniform extends MutateDoubleUniform
MutateDoubleNonUniform
non-uniformly mutates a
DoubleGenotype
elementwise.Modifier and Type | Field and Description |
---|---|
protected org.opt4j.core.optimizer.Iteration |
iteration |
perturbation
Constructor and Description |
---|
MutateDoubleNonUniform(org.opt4j.core.common.random.Rand random,
org.opt4j.operators.normalize.NormalizeDouble normalize,
org.opt4j.core.optimizer.Iteration iteration,
double perturbation)
Constructs a
MutateDoubleNonUniform . |
Modifier and Type | Method and Description |
---|---|
protected double |
delta(double perturbation)
Calculates the delta value for the non-uniform mutation.
|
protected double |
mutateElement(double x,
double lb,
double ub,
double p) |
@Inject public MutateDoubleNonUniform(org.opt4j.core.common.random.Rand random, org.opt4j.operators.normalize.NormalizeDouble normalize, org.opt4j.core.optimizer.Iteration iteration, double perturbation)
MutateDoubleNonUniform
.random
- the random number generatornormalize
- the normalize operatoriteration
- the iteration counterperturbation
- the perturbation indexprotected double mutateElement(double x, double lb, double ub, double p)
mutateElement
in class MutateDoubleUniform
protected double delta(double perturbation)
perturbation
- the perturbation value