public abstract class MutateDouble extends Object implements Mutate<DoubleGenotype>
DoubleGenotype.| Constructor and Description |
|---|
MutateDouble(Rand random,
NormalizeDouble normalize)
Constructs a
MutateDouble. |
| Modifier and Type | Method and Description |
|---|---|
void |
mutate(DoubleGenotype genotype,
double p)
Performs a mutation for a
Genotype. |
@Inject public MutateDouble(Rand random, NormalizeDouble normalize)
MutateDouble.random - the random number generatornormalize - the normalizerpublic void mutate(DoubleGenotype genotype, double p)
MutateGenotype.mutate in interface Mutate<DoubleGenotype>genotype - the genotype to be mutatedp - the mutation rate