Class MutateDoubleUniform

  • All Implemented Interfaces:
    org.opt4j.core.optimizer.Operator<org.opt4j.core.genotype.DoubleGenotype>, org.opt4j.operators.mutate.Mutate<org.opt4j.core.genotype.DoubleGenotype>
    Direct Known Subclasses:
    MutateDoubleNonUniform

    public class MutateDoubleUniform
    extends org.opt4j.operators.mutate.MutateDoubleElementwise
    The MutateDoubleUniform uniformly mutates a DoubleGenotype elementwise.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected double perturbation  
      • Fields inherited from class org.opt4j.operators.mutate.MutateDouble

        normalize, random
    • Constructor Summary

      Constructors 
      Constructor Description
      MutateDoubleUniform​(org.opt4j.core.common.random.Rand random, org.opt4j.operators.normalize.NormalizeDouble normalize, double perturbation)
      Constructs a MutateDoubleUniform.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected double mutateElement​(double x, double lb, double ub, double p)  
      • Methods inherited from class org.opt4j.operators.mutate.MutateDoubleElementwise

        mutateList
      • Methods inherited from class org.opt4j.operators.mutate.MutateDouble

        mutate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.opt4j.operators.mutate.Mutate

        getOperatorType
    • Field Detail

      • perturbation

        protected final double perturbation
    • Constructor Detail

      • MutateDoubleUniform

        @Inject
        public MutateDoubleUniform​(org.opt4j.core.common.random.Rand random,
                                   org.opt4j.operators.normalize.NormalizeDouble normalize,
                                   double perturbation)
        Constructs a MutateDoubleUniform.
        Parameters:
        random - the random number generator
        normalize - the normalize operator
        perturbation - the perturbation index
    • Method Detail

      • mutateElement

        protected double mutateElement​(double x,
                                       double lb,
                                       double ub,
                                       double p)
        Specified by:
        mutateElement in class org.opt4j.operators.mutate.MutateDoubleElementwise