Class ConstantMutationRate

java.lang.Object
org.opt4j.operators.mutate.ConstantMutationRate
All Implemented Interfaces:
MutationRate

public class ConstantMutationRate extends Object implements MutationRate
Constant mutation rate. The MutationRate is set once.
  • Constructor Details

  • Method Details

    • 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