Package org.opt4j.benchmarks
Class DoubleCopyDecoder
java.lang.Object
org.opt4j.benchmarks.DoubleCopyDecoder
- All Implemented Interfaces:
Decoder<DoubleString,DoubleString>
The
DoubleCopyDecoder passes the DoubleString directly to the
evaluator.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(DoubleString genotype) Decodes a givenGenotypeto the corresponding phenotype.
-
Constructor Details
-
DoubleCopyDecoder
public DoubleCopyDecoder()
-
-
Method Details
-
decode
Description copied from interface:DecoderDecodes a givenGenotypeto the corresponding phenotype.- Specified by:
decodein interfaceDecoder<DoubleString,DoubleString> - Parameters:
genotype- the genotype to decode- Returns:
- the decoded phenotype
-