Package org.opt4j.operators.mutate
Class MutateBoolean
- java.lang.Object
-
- org.opt4j.operators.mutate.MutateBoolean
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Random
random
-
Constructor Summary
Constructors Constructor Description MutateBoolean(org.opt4j.core.common.random.Rand random)
Constructs a newMutateBoolean
with the given mutation rate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mutate(org.opt4j.core.genotype.BooleanGenotype genotype, double p)
Performs a mutation for aGenotype
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opt4j.operators.mutate.Mutate
getOperatorType
-
-
-
-
Constructor Detail
-
MutateBoolean
@Inject public MutateBoolean(org.opt4j.core.common.random.Rand random)
Constructs a newMutateBoolean
with the given mutation rate.- Parameters:
random
- the random number generator
-
-
Method Detail
-
mutate
public void mutate(org.opt4j.core.genotype.BooleanGenotype genotype, double p)
Description copied from interface:Mutate
Performs a mutation for aGenotype
.
-
-