Class FloatChromosome

java.lang.Object
net.bmahe.genetics4j.core.chromosomes.FloatChromosome
All Implemented Interfaces:
Chromosome

public class FloatChromosome extends Object implements Chromosome
  • 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 interface Chromosome
    • 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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object