Class MutateDoublePolynomial

    • Field Detail

      • eta

        protected final double eta
    • Constructor Detail

      • MutateDoublePolynomial

        @Inject
        public MutateDoublePolynomial​(Rand random,
                                      NormalizeDouble normalize,
                                      double eta)
        Constructs a MutateDoubleGauss with a Rand random number generator, a NormalizeDouble, and an eta value.
        Parameters:
        random - the random number generator
        normalize - the normalizer
        eta - the eta value
    • 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