Package org.opt4j.operator.neighbor
Class NeighborDouble
java.lang.Object
org.opt4j.operator.neighbor.NeighborDouble
- All Implemented Interfaces:
Operator<DoubleGenotype>
,Neighbor<DoubleGenotype>
The
NeighborDouble
operator for the DoubleGenotype
.-
Field Summary
-
Constructor Summary
ConstructorDescriptionNeighborDouble
(NormalizeDouble normalize, Rand random) Constructs aNeighborDouble
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
neighbor
(DoubleGenotype genotype) Moves theGenotype
to a neighbor.
-
Field Details
-
random
-
normalize
-
-
Constructor Details
-
NeighborDouble
Constructs aNeighborDouble
.- Parameters:
normalize
- the operator for normalizationrandom
- the random number generator
-
-
Method Details