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