public class VariableBitChromosome extends BitChromosome
basesBIASED, crossoverPoints, crossoverRate, LAPLACE, length, mutationRate, soupType| Constructor and Description |
|---|
VariableBitChromosome()
The standard constructor.
|
VariableBitChromosome(Element c)
Creates a VariableBitChromosome via XML.
|
VariableBitChromosome(int length)
Constructs a chromosome of given length.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doCrossover(Chromosome father)
Non-homologous 1--point crossover.
|
clone, doMutation, equals, fromString, getBases, hashCode, mixSoup, toStringcreate, getCrossoverPoints, getCrossoverRate, getLength, getMutationRate, getSoupType, setCrossoverPoints, setCrossoverRate, setLength, setMutationRate, setSoupType, toXmlpublic VariableBitChromosome()
public VariableBitChromosome(int length)
length - the number of basespublic VariableBitChromosome(Element c)
c - an XML Chromosome elementpublic void doCrossover(Chromosome father)
doCrossover in class BitChromosomefather - a parent Chromosome (technically already a child).