Modifier and Type | Field and Description |
---|---|
protected java.util.Random |
random |
Constructor and Description |
---|
MutateBoolean(org.opt4j.core.common.random.Rand random)
Constructs a new
MutateBoolean with the given mutation rate. |
Modifier and Type | Method and Description |
---|---|
void |
mutate(org.opt4j.core.genotype.BooleanGenotype genotype,
double p)
Performs a mutation for a
Genotype . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOperatorType
@Inject public MutateBoolean(org.opt4j.core.common.random.Rand random)
MutateBoolean
with the given mutation rate.random
- the random number generatorpublic void mutate(org.opt4j.core.genotype.BooleanGenotype genotype, double p)
Mutate
Genotype
.