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
The NormalizeDoubleElementwise
normalizes DoubleGenotype
s
elementwise.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract double
normalize
(double value, double lb, double ub) Normalize a double value.void
normalize
(DoubleGenotype genotype) Normalizes theGenotype
.
-
Constructor Details
-
NormalizeDoubleElementwise
public NormalizeDoubleElementwise()
-
-
Method Details
-
normalize
Description copied from interface:Normalize
Normalizes theGenotype
.- Specified by:
normalize
in 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
-