public class BinaryToRvDecoder extends java.lang.Object implements SolutionDecoder<BooleanVectorSolution,DoubleVectorSolution>
Decodes a binary solution to a real-valued one.
Modifier and Type | Class and Description |
---|---|
static interface |
io.vavr.Lambda.Memoized |
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
BinaryToRvDecoder() |
Modifier and Type | Method and Description |
---|---|
protected double |
binaryToDouble(boolean[] representation,
int offset,
int length) |
private static long |
binaryToLongBits(boolean[] representation,
int offset,
int length) |
DoubleVectorSolution |
decodeSolution(BooleanVectorSolution solution)
Decodes the given solution.
|
default boolean |
isMemoized() |
private double[] |
transformRepresentation(boolean[] representation) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
private static final long serialVersionUID
public final DoubleVectorSolution decodeSolution(BooleanVectorSolution solution)
SolutionDecoder
Decodes the given solution.
decodeSolution
in interface SolutionDecoder<BooleanVectorSolution,DoubleVectorSolution>
solution
- the solution to be transformedprotected double binaryToDouble(boolean[] representation, int offset, int length)
private double[] transformRepresentation(boolean[] representation)
private static long binaryToLongBits(boolean[] representation, int offset, int length)
public boolean isMemoized()