public abstract class BinaryChromosome extends AbstractListChromosome<java.lang.Integer>
| Constructor and Description |
|---|
BinaryChromosome(java.lang.Integer[] representation)
Constructor.
|
BinaryChromosome(java.util.List<java.lang.Integer> representation)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.Integer> |
randomBinaryRepresentation(int length)
Returns a representation of a random binary array of length
length. |
getLength, newFixedLengthChromosome, toStringcompareTo, getFitness, searchForFitnessUpdatepublic BinaryChromosome(java.util.List<java.lang.Integer> representation)
representation - list of {0,1} values representing the chromosomepublic BinaryChromosome(java.lang.Integer[] representation)
representation - array of {0,1} values representing the chromosomeCopyright © 2010 - 2023 Adobe. All Rights Reserved