Package org.opt4j.operator.normalize
Class NormalizeDoubleMirror
- java.lang.Object
-
- org.opt4j.operator.normalize.NormalizeDoubleElementwise
-
- org.opt4j.operator.normalize.NormalizeDoubleMirror
-
- All Implemented Interfaces:
Operator<DoubleGenotype>
,Normalize<DoubleGenotype>
,NormalizeDouble
public class NormalizeDoubleMirror extends NormalizeDoubleElementwise
TheNormalizeDoubleMirror
normalizes theDoubleGenotype
by mirroring the values on the borders if the bounds are violated.
-
-
Constructor Summary
Constructors Constructor Description NormalizeDoubleMirror()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
normalize(double value, double lb, double ub)
Normalize a double value.-
Methods inherited from class org.opt4j.operator.normalize.NormalizeDoubleElementwise
normalize
-
-
-
-
Method Detail
-
normalize
public double normalize(double value, double lb, double ub)
Description copied from class:NormalizeDoubleElementwise
Normalize a double value.- Specified by:
normalize
in classNormalizeDoubleElementwise
- Parameters:
value
- the value to be normalizedlb
- the lower boundub
- the upper bound- Returns:
- a normalize value in the bounds
-
-