public class BitDecoder extends Decoder
chromosome, chromosomeNumber, geneLength, geneStart, transferList
Constructor and Description |
---|
BitDecoder()
Constructs the BitDecoder with gene length = 8.
|
Modifier and Type | Method and Description |
---|---|
boolean |
readBit(int index)
Returns the bit at the given index.
|
int |
readInt(int start,
double min,
double max)
Returns the binary-encoded integer.
|
double |
readReal(int start,
double min,
double max)
Returns the binary-encoded double.
|
clone, getChromosome, getChromosomeNumber, getGeneLength, getGeneStart, read, read, read, setChromosome, setChromosome, setChromosomeNumber, setGeneLength, setGeneStart, toString
public boolean readBit(int index)
public int readInt(int start, double min, double max)
public double readReal(int start, double min, double max)