T
- class of elements held by AlleleSetpublic interface AlleleSet<T>
ObjectChromosome.Gene
of an
ObjectChromosome
has an allele set containing all the object values it can assume.
A custom set of values can be determined by implementing this interface.ObjectChromosome
Modifier and Type | Method and Description |
---|---|
double |
difference(T a0,
T a1)
Provides the genetic difference between two alleles.
|
T |
getElementAt(int pos)
Gets the allele value at the specified position
|
T |
getRandomValue()
Gets a random allele value within this alphabet.
|
int |
size()
Returns the alphabet size
|
T getElementAt(int pos)
pos
- the index of the desidered allele valueT getRandomValue()
int size()