Package org.opt4j.operators.normalize
Class NormalizeDoubleElementwise
java.lang.Object
org.opt4j.operators.normalize.NormalizeDoubleElementwise
- All Implemented Interfaces:
Operator<DoubleGenotype>,Normalize<DoubleGenotype>,NormalizeDouble
- Direct Known Subclasses:
NormalizeDoubleBorder,NormalizeDoubleMirror,NormalizeDoubleWrap
The NormalizeDoubleElementwise normalizes DoubleGenotypes
elementwise.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract doublenormalize(double value, double lb, double ub) Normalize a double value.voidnormalize(DoubleGenotype genotype) Normalizes theGenotype.
-
Constructor Details
-
NormalizeDoubleElementwise
public NormalizeDoubleElementwise()
-
-
Method Details
-
normalize
Description copied from interface:NormalizeNormalizes theGenotype.- Specified by:
normalizein interfaceNormalize<DoubleGenotype>- Parameters:
genotype- the genotype to be normalized
-
normalize
Normalize a double value.- Parameters:
value- the value to be normalizedlb- the lower boundub- the upper bound- Returns:
- a normalize value in the bounds
-