public class NeighborDouble extends Object implements Neighbor<DoubleGenotype>
NeighborDouble operator for the DoubleGenotype.| Constructor and Description |
|---|
NeighborDouble(NormalizeDouble normalize,
Rand random)
Constructs a
NeighborDouble. |
| Modifier and Type | Method and Description |
|---|---|
void |
neighbor(DoubleGenotype genotype)
Moves the
Genotype to a neighbor. |
@Inject public NeighborDouble(NormalizeDouble normalize, Rand random)
NeighborDouble.normalize - the operator for normalizationrandom - the random number generatorpublic void neighbor(DoubleGenotype genotype)
NeighborGenotype to a neighbor.neighbor in interface Neighbor<DoubleGenotype>genotype - the Genotype to be changed