Class ConstantMutationRate

    • Field Detail

      • rate

        protected final double rate
    • Constructor Detail

      • ConstantMutationRate

        @Inject
        public ConstantMutationRate​(double rate)
        Constructs a ConstantMutationRate with a given value.
        Parameters:
        rate - the mutation rate value
    • Method Detail

      • 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