public abstract class DoubleContinuousRecombine extends ContinuousRecombine<java.lang.Double,DoubleVectorSolution>
Abstract class which efficiently unboxes Double.
Modifier and Type | Class and Description |
---|---|
static interface |
io.vavr.Lambda.Memoized |
Constructor and Description |
---|
DoubleContinuousRecombine() |
Modifier and Type | Method and Description |
---|---|
default boolean |
isMemoized() |
protected io.vavr.Tuple2<io.vavr.collection.Array<java.lang.Double>,io.vavr.collection.Array<java.lang.Double>> |
recombine(io.vavr.collection.Array<java.lang.Double> representation1,
io.vavr.collection.Array<java.lang.Double> representation2,
int index)
Recombines the representations at the given index.
|
protected abstract double |
recombine(double value1,
double value2)
Perform the actual recombination on primitive doubles.
|
recombine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
protected io.vavr.Tuple2<io.vavr.collection.Array<java.lang.Double>,io.vavr.collection.Array<java.lang.Double>> recombine(io.vavr.collection.Array<java.lang.Double> representation1, io.vavr.collection.Array<java.lang.Double> representation2, int index)
ContinuousRecombine
Recombines the representations at the given index.
This method purpose is to allow efficient unboxing in case of representations of primitives.
recombine
in class ContinuousRecombine<java.lang.Double,DoubleVectorSolution>
representation1
- the first representationrepresentation2
- the second representationindex
- the index at which recombination should occurprotected abstract double recombine(double value1, double value2)
Perform the actual recombination on primitive doubles.
value1
- The first valuevalue2
- The second valuepublic boolean isMemoized()