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, toString
compareTo, getFitness, searchForFitnessUpdate
public 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 chromosome"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"