Class ConstantCrossoverRate

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected double crossoverRate  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double get()
      Returns the crossover rate as a double value.
      void set​(double value)
      Sets the crossover rate to a double value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • crossoverRate

        protected final double crossoverRate
    • Constructor Detail

      • ConstantCrossoverRate

        @Inject
        public ConstantCrossoverRate​(double crossoverRate)
        Constructs a ConstantCrossoverRate with a given crossover rate.
        Parameters:
        crossoverRate - the crossover rate
    • Method Detail

      • get

        public double get()
        Description copied from interface: CrossoverRate
        Returns the crossover rate as a double value.
        Specified by:
        get in interface CrossoverRate
        Returns:
        the crossover rate
      • set

        public void set​(double value)
        Description copied from interface: CrossoverRate
        Sets the crossover rate to a double value.
        Specified by:
        set in interface CrossoverRate
        Parameters:
        value - the new crossover rate