Class MutateDoubleGauss

    • Field Detail

      • sigma

        protected final double sigma
    • Constructor Detail

      • MutateDoubleGauss

        @Inject
        public MutateDoubleGauss​(Rand random,
                                 NormalizeDouble normalize,
                                 double sigma)
        Constructs a MutateDoubleGauss.
        Parameters:
        random - the random number generator
        normalize - the normalizer
        sigma - the sigma value
    • Method Detail

      • mutateElement

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