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