public final class OnePointRecombination extends java.lang.Object implements Recombination<DoubleVectorSolution>
Recombines the representations of two real-valued solutions at a random point.
Modifier and Type | Class and Description |
---|---|
static interface |
io.vavr.Lambda.Memoized |
Modifier and Type | Field and Description |
---|---|
private IntRandomGenerator |
rand |
Constructor and Description |
---|
OnePointRecombination(IntRandomGenerator rand) |
Modifier and Type | Method and Description |
---|---|
default boolean |
isMemoized() |
io.vavr.Tuple2<DoubleVectorSolution,DoubleVectorSolution> |
recombine(DoubleVectorSolution solution1,
DoubleVectorSolution solution2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
private final IntRandomGenerator rand
public OnePointRecombination(IntRandomGenerator rand)
public io.vavr.Tuple2<DoubleVectorSolution,DoubleVectorSolution> recombine(DoubleVectorSolution solution1, DoubleVectorSolution solution2)
recombine
in interface Recombination<DoubleVectorSolution>
public boolean isMemoized()