public abstract class BinaryChromosome extends AbstractListChromosome<Integer>
| Constructor and Description |
|---|
BinaryChromosome(Integer[] representation)
Constructor.
|
BinaryChromosome(List<Integer> representation)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static List<Integer> |
randomBinaryRepresentation(int length)
Returns a representation of a random binary array of length
length. |
getLength, newFixedLengthChromosome, toStringcompareTo, getFitness, searchForFitnessUpdatepublic BinaryChromosome(List<Integer> representation) throws InvalidRepresentationException
representation - list of {0,1} values representing the chromosomeInvalidRepresentationException - iff the representation can not represent a valid chromosomepublic BinaryChromosome(Integer[] representation) throws InvalidRepresentationException
representation - array of {0,1} values representing the chromosomeInvalidRepresentationException - iff the representation can not represent a valid chromosomeJas4pp 1.5 © Java Analysis Studio for Particle Physics