Package org.opt4j.operators.neighbor
Class NeighborDouble
- java.lang.Object
-
- org.opt4j.operators.neighbor.NeighborDouble
-
- All Implemented Interfaces:
org.opt4j.core.optimizer.Operator<org.opt4j.core.genotype.DoubleGenotype>
,Neighbor<org.opt4j.core.genotype.DoubleGenotype>
public class NeighborDouble extends java.lang.Object implements Neighbor<org.opt4j.core.genotype.DoubleGenotype>
TheNeighborDouble
operator for theDoubleGenotype
.
-
-
Field Summary
Fields Modifier and Type Field Description protected NormalizeDouble
normalize
protected java.util.Random
random
-
Constructor Summary
Constructors Constructor Description NeighborDouble(NormalizeDouble normalize, org.opt4j.core.common.random.Rand random)
Constructs aNeighborDouble
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
neighbor(org.opt4j.core.genotype.DoubleGenotype genotype)
Moves theGenotype
to a neighbor.-
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.neighbor.Neighbor
getOperatorType
-
-
-
-
Field Detail
-
random
protected final java.util.Random random
-
normalize
protected final NormalizeDouble normalize
-
-
Constructor Detail
-
NeighborDouble
@Inject public NeighborDouble(NormalizeDouble normalize, org.opt4j.core.common.random.Rand random)
Constructs aNeighborDouble
.- Parameters:
normalize
- the operator for normalizationrandom
- the random number generator
-
-