public final class RandomRecombine extends DoubleContinuousRecombine
Recombination strategy that averages randomly between two individuals.
Modifier and Type | Class and Description |
---|---|
static interface |
io.vavr.Lambda.Memoized |
Modifier and Type | Field and Description |
---|---|
private DoubleRandomGenerator |
rand |
Constructor and Description |
---|
RandomRecombine(DoubleRandomGenerator rand) |
Modifier and Type | Method and Description |
---|---|
default boolean |
isMemoized() |
protected double |
recombine(double a,
double b)
Perform the actual recombination on primitive doubles.
|
recombine
recombine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
private final DoubleRandomGenerator rand
public RandomRecombine(DoubleRandomGenerator rand)
protected double recombine(double a, double b)
DoubleContinuousRecombine
Perform the actual recombination on primitive doubles.
recombine
in class DoubleContinuousRecombine
a
- The first valueb
- The second valuepublic boolean isMemoized()