Class MutateDoublePolynomial

All Implemented Interfaces:
Operator<DoubleGenotype>, Mutate<DoubleGenotype>
Direct Known Subclasses:
MutateDoubleDefault

public class MutateDoublePolynomial extends MutateDoubleElementwise
  • Field Details

    • eta

      protected final double eta
  • Constructor Details

    • MutateDoublePolynomial

      @Inject public MutateDoublePolynomial(Rand random, NormalizeDouble normalize, double eta)
      Constructs a MutateDoubleGauss with a Rand random number generator, a NormalizeDouble, and an eta value.
      Parameters:
      random - the random number generator
      normalize - the normalizer
      eta - the eta value
  • Method Details

    • mutateElement

      protected double mutateElement(double x, double lb, double ub, double p)
      Description copied from class: MutateDoubleElementwise
      Mutate one element of the list.
      Specified by:
      mutateElement in class MutateDoubleElementwise
      Parameters:
      x - the element
      lb - the lower bound
      ub - the upper bound
      p - the mutation rate
      Returns:
      the mutated element