Class MutateDoubleNonUniform

    • Field Detail

      • iteration

        protected final Iteration iteration
    • Constructor Detail

      • MutateDoubleNonUniform

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

      • mutateElement

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

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