Package org.opt4j.operator.normalize
Class NormalizeDoubleElementwise
- java.lang.Object
-
- org.opt4j.operator.normalize.NormalizeDoubleElementwise
-
- All Implemented Interfaces:
Operator<DoubleGenotype>,Normalize<DoubleGenotype>,NormalizeDouble
- Direct Known Subclasses:
NormalizeDoubleBorder,NormalizeDoubleMirror,NormalizeDoubleWrap
public abstract class NormalizeDoubleElementwise extends Object implements NormalizeDouble
The
NormalizeDoubleElementwisenormalizesDoubleGenotypes elementwise.
-
-
Constructor Summary
Constructors Constructor Description NormalizeDoubleElementwise()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract doublenormalize(double value, double lb, double ub)Normalize a double value.voidnormalize(DoubleGenotype genotype)Normalizes theGenotype.
-
-
-
Method Detail
-
normalize
public void normalize(DoubleGenotype genotype)
Description copied from interface:NormalizeNormalizes theGenotype.- Specified by:
normalizein interfaceNormalize<DoubleGenotype>- Parameters:
genotype- the genotype to be normalized
-
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
-
-