public class MutateDoubleUniform
extends org.opt4j.operators.mutate.MutateDoubleElementwise
MutateDoubleUniform
uniformly mutates a DoubleGenotype
elementwise.Modifier and Type | Field and Description |
---|---|
protected double |
perturbation |
Constructor and Description |
---|
MutateDoubleUniform(org.opt4j.core.common.random.Rand random,
org.opt4j.operators.normalize.NormalizeDouble normalize,
double perturbation)
Constructs a
MutateDoubleUniform . |
Modifier and Type | Method and Description |
---|---|
protected double |
mutateElement(double x,
double lb,
double ub,
double p) |
@Inject public MutateDoubleUniform(org.opt4j.core.common.random.Rand random, org.opt4j.operators.normalize.NormalizeDouble normalize, double perturbation)
MutateDoubleUniform
.random
- the random number generatornormalize
- the normalize operatorperturbation
- the perturbation index