G
- the type of genotypepublic interface Mutate<G extends org.opt4j.core.Genotype>
extends org.opt4j.core.optimizer.Operator<G>
Mutate
operator that performs a mutation for a Genotype
.Modifier and Type | Method and Description |
---|---|
default java.lang.Class<? extends org.opt4j.core.optimizer.Operator<?>> |
getOperatorType() |
void |
mutate(G genotype,
double p)
Performs a mutation for a
Genotype . |
void mutate(G genotype, double p)
Genotype
.genotype
- the genotype to be mutatedp
- the mutation ratedefault java.lang.Class<? extends org.opt4j.core.optimizer.Operator<?>> getOperatorType()
getOperatorType
in interface org.opt4j.core.optimizer.Operator<G extends org.opt4j.core.Genotype>