Class MutateDouble

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

public abstract class MutateDouble extends Object implements Mutate<DoubleGenotype>
Mutate for the DoubleGenotype.
  • Field Details

  • Constructor Details

    • MutateDouble

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

    • mutate

      public void mutate(DoubleGenotype genotype, double p)
      Description copied from interface: Mutate
      Performs a mutation for a Genotype.
      Specified by:
      mutate in interface Mutate<DoubleGenotype>
      Parameters:
      genotype - the genotype to be mutated
      p - the mutation rate
    • mutateList

      protected abstract void mutateList(DoubleGenotype vector, double p)
      The mutate internal function.
      Parameters:
      vector - the vector of double values
      p - the mutation rate