Class MutateIntegerRandom

    • Field Detail

      • random

        protected final Random random
    • Constructor Detail

      • MutateIntegerRandom

        @Inject
        public MutateIntegerRandom​(Rand random)
        Constructs a MutateIntegerRandom.
        Parameters:
        random - the random number generator
    • Method Detail

      • mutate

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