Class MutateDoubleGauss

All Implemented Interfaces:
Operator<DoubleGenotype>, Mutate<DoubleGenotype>

public class MutateDoubleGauss extends MutateDoubleElementwise
  • Field Details

    • sigma

      protected final double sigma
  • Constructor Details

    • MutateDoubleGauss

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

    • mutateElement

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