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