Class MutateDoubleElementwise

java.lang.Object
org.opt4j.operator.mutate.MutateDouble
org.opt4j.operator.mutate.MutateDoubleElementwise
All Implemented Interfaces:
Operator<DoubleGenotype>, Mutate<DoubleGenotype>
Direct Known Subclasses:
MutateDoubleGauss, MutateDoublePolynomial, MutateDoubleUniform

public abstract class MutateDoubleElementwise extends MutateDouble
  • Constructor Details

    • MutateDoubleElementwise

      public MutateDoubleElementwise(Rand random, NormalizeDouble normalize)
      Parameters:
      random - the random number generator
      normalize - the normalizer
  • Method Details

    • mutateList

      protected void mutateList(DoubleGenotype vector, double p)
      Description copied from class: MutateDouble
      The mutate internal function.
      Specified by:
      mutateList in class MutateDouble
      Parameters:
      vector - the vector of double values
      p - the mutation rate
    • mutateElement

      protected abstract double mutateElement(double element, double lb, double ub, double p)
      Mutate one element of the list.
      Parameters:
      element - the element
      lb - the lower bound
      ub - the upper bound
      p - the mutation rate
      Returns:
      the mutated element