public class MutateIntegerRandom extends Object implements MutateInteger
MutateIntegerRandom mutates each element of the
IntegerGenotype with the mutation rate. Here, a new value is created
randomly between the lower and upper bounds.| Constructor and Description |
|---|
MutateIntegerRandom(Rand random)
Constructs a
MutateIntegerRandom. |
| Modifier and Type | Method and Description |
|---|---|
void |
mutate(IntegerGenotype genotype,
double p)
Performs a mutation for a
Genotype. |
@Inject public MutateIntegerRandom(Rand random)
MutateIntegerRandom.random - the random number generatorpublic void mutate(IntegerGenotype genotype, double p)
MutateGenotype.mutate in interface Mutate<IntegerGenotype>genotype - the genotype to be mutatedp - the mutation rate