Class AdaptiveMutationRate

    • Field Detail

      • isInit

        protected boolean isInit
      • rate

        protected double rate
    • Constructor Detail

      • AdaptiveMutationRate

        @Inject
        public AdaptiveMutationRate​(IndividualFactory individualFactory)
        Constructs an AdaptiveMutationRate.
        Parameters:
        individualFactory - the individual creator
    • Method Detail

      • init

        @Inject
        public void init()
        Initializes the listeners.
      • get

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

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