Package org.opt4j.operators.normalize
Class NormalizeDoubleElementwise
- java.lang.Object
-
- org.opt4j.operators.normalize.NormalizeDoubleElementwise
-
- All Implemented Interfaces:
org.opt4j.core.optimizer.Operator<org.opt4j.core.genotype.DoubleGenotype>
,Normalize<org.opt4j.core.genotype.DoubleGenotype>
,NormalizeDouble
- Direct Known Subclasses:
NormalizeDoubleBorder
,NormalizeDoubleMirror
,NormalizeDoubleWrap
public abstract class NormalizeDoubleElementwise extends java.lang.Object implements NormalizeDouble
The
NormalizeDoubleElementwise
normalizesDoubleGenotype
s elementwise.
-
-
Constructor Summary
Constructors Constructor Description NormalizeDoubleElementwise()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract double
normalize(double value, double lb, double ub)
Normalize a double value.void
normalize(org.opt4j.core.genotype.DoubleGenotype genotype)
Normalizes theGenotype
.-
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.normalize.Normalize
getOperatorType
-
-
-
-
Method Detail
-
normalize
public void normalize(org.opt4j.core.genotype.DoubleGenotype genotype)
Description copied from interface:Normalize
Normalizes theGenotype
.
-
normalize
public abstract double normalize(double value, double lb, double ub)
Normalize a double value.- Parameters:
value
- the value to be normalizedlb
- the lower boundub
- the upper bound- Returns:
- a normalize value in the bounds
-
-