Class MutateDoubleNonUniform

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

    public class MutateDoubleNonUniform
    extends MutateDoubleUniform
    The MutateDoubleNonUniform non-uniformly mutates a DoubleGenotype elementwise.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.opt4j.core.optimizer.Iteration iteration  
      • Fields inherited from class org.opt4j.operators.mutate.MutateDouble

        normalize, random
    • Constructor Summary

      Constructors 
      Constructor Description
      MutateDoubleNonUniform​(org.opt4j.core.common.random.Rand random, org.opt4j.operators.normalize.NormalizeDouble normalize, org.opt4j.core.optimizer.Iteration iteration, double perturbation)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected double delta​(double perturbation)
      Calculates the delta value for the non-uniform mutation.
      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

      • iteration

        protected final org.opt4j.core.optimizer.Iteration iteration
    • Constructor Detail

      • MutateDoubleNonUniform

        @Inject
        public MutateDoubleNonUniform​(org.opt4j.core.common.random.Rand random,
                                      org.opt4j.operators.normalize.NormalizeDouble normalize,
                                      org.opt4j.core.optimizer.Iteration iteration,
                                      double perturbation)
        Parameters:
        random - the random number generator
        normalize - the normalize operator
        iteration - the iteration counter
        perturbation - the perturbation index
    • Method Detail

      • delta

        protected double delta​(double perturbation)
        Calculates the delta value for the non-uniform mutation.
        Parameters:
        perturbation - the perturbation value
        Returns:
        the delta value