public final class NormalMutate extends DoubleStochasticMutate
Simple population mutation strategy, that mutates each solution individually using provided solution mutation strategy.
Modifier and Type | Class and Description |
---|---|
static interface |
io.vavr.Lambda.Memoized |
Modifier and Type | Field and Description |
---|---|
private double |
mutationRange |
private NormalizedDoubleRandomGenerator |
rand |
Constructor and Description |
---|
NormalMutate(NormalizedDoubleRandomGenerator doubleRand,
IntRandomGenerator intRand,
double mutationRange) |
Modifier and Type | Method and Description |
---|---|
protected double |
doMutate(double value)
Perform the actual mutation on a primitive double.
|
default boolean |
isMemoized() |
doMutate
mutate
private final NormalizedDoubleRandomGenerator rand
private final double mutationRange
public NormalMutate(NormalizedDoubleRandomGenerator doubleRand, IntRandomGenerator intRand, double mutationRange)
protected double doMutate(double value)
DoubleStochasticMutate
Perform the actual mutation on a primitive double.
doMutate
in class DoubleStochasticMutate
value
- The old valuepublic boolean isMemoized()