Class MutateDouble

    • Constructor Detail

      • MutateDouble

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

      • mutate

        public void mutate​(DoubleGenotype genotype,
                           double p)
        Description copied from interface: Mutate
        Performs a mutation for a Genotype.
        Specified by:
        mutate in interface Mutate<DoubleGenotype>
        Parameters:
        genotype - the genotype to be mutated
        p - the mutation rate
      • mutateList

        protected abstract void mutateList​(DoubleGenotype vector,
                                           double p)
        The mutate internal function.
        Parameters:
        vector - the vector of double values
        p - the mutation rate