public class NeighborBoolean extends java.lang.Object implements Neighbor<org.opt4j.core.genotype.BooleanGenotype>
DiversityBoolean
operator for the BooleanGenotype
.Modifier and Type | Field and Description |
---|---|
protected java.util.Random |
random |
Constructor and Description |
---|
NeighborBoolean(org.opt4j.core.common.random.Rand random)
Constructs a
Neighbor operator for the BooleanGenotype . |
Modifier and Type | Method and Description |
---|---|
void |
neighbor(org.opt4j.core.genotype.BooleanGenotype genotype)
Moves the
Genotype to a neighbor. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOperatorType
@Inject public NeighborBoolean(org.opt4j.core.common.random.Rand random)
Neighbor
operator for the BooleanGenotype
.random
- the random number generator