Class MutateDoubleElementwise

    • Constructor Detail

      • MutateDoubleElementwise

        public MutateDoubleElementwise​(Rand random,
                                       NormalizeDouble normalize)
        Parameters:
        random - the random number generator
        normalize - the normalizer
    • Method Detail

      • mutateList

        protected void mutateList​(DoubleGenotype vector,
                                  double p)
        Description copied from class: MutateDouble
        The mutate internal function.
        Specified by:
        mutateList in class MutateDouble
        Parameters:
        vector - the vector of double values
        p - the mutation rate
      • mutateElement

        protected abstract double mutateElement​(double element,
                                                double lb,
                                                double ub,
                                                double p)
        Mutate one element of the list.
        Parameters:
        element - the element
        lb - the lower bound
        ub - the upper bound
        p - the mutation rate
        Returns:
        the mutated element