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
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(DoubleGenotype genotype)
Normalizes theGenotype
.
-
-
-
Method Detail
-
normalize
public void normalize(DoubleGenotype genotype)
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
-
-