Class IntChromosome
java.lang.Object
net.bmahe.genetics4j.core.chromosomes.IntChromosome
- All Implemented Interfaces:
Chromosome
-
Field Details
-
size
private final int size -
minValue
private final int minValue -
maxValue
private final int maxValue -
values
private final int[] values
-
-
Constructor Details
-
IntChromosome
public IntChromosome(int _size, int _minValue, int _maxValue, int[] _values)
-
-
Method Details
-
getNumAlleles
public int getNumAlleles()- Specified by:
getNumAlleles
in interfaceChromosome
-
getAllele
public int getAllele(int index) -
getSize
public int getSize() -
getMinValue
public int getMinValue() -
getMaxValue
public int getMaxValue() -
getValues
public int[] getValues() -
hashCode
public int hashCode() -
equals
-
toString
-