Class MutateBoolean

    • Field Detail

      • random

        protected final Random random
    • Constructor Detail

      • MutateBoolean

        @Inject
        public MutateBoolean​(Rand random)
        Constructs a new MutateBoolean with the given mutation rate.
        Parameters:
        random - the random number generator
    • Method Detail

      • mutate

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