Class MutateDoubleUniform

    • Field Detail

      • perturbation

        protected final double perturbation
    • Constructor Detail

      • MutateDoubleUniform

        @Inject
        public MutateDoubleUniform​(Rand random,
                                   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)
        Description copied from class: MutateDoubleElementwise
        Mutate one element of the list.
        Specified by:
        mutateElement in class MutateDoubleElementwise
        Parameters:
        x - the element
        lb - the lower bound
        ub - the upper bound
        p - the mutation rate
        Returns:
        the mutated element