public class MutateBoolean extends Object implements Mutate<BooleanGenotype>
BooleanGenotype.| Constructor and Description |
|---|
MutateBoolean(Rand random)
Constructs a new
MutateBoolean with the given mutation rate. |
| Modifier and Type | Method and Description |
|---|---|
void |
mutate(BooleanGenotype genotype,
double p)
Performs a mutation for a
Genotype. |
@Inject public MutateBoolean(Rand random)
MutateBoolean with the given mutation rate.random - the random number generatorpublic void mutate(BooleanGenotype genotype, double p)
MutateGenotype.mutate in interface Mutate<BooleanGenotype>genotype - the genotype to be mutatedp - the mutation rate