Package org.opt4j.operator.normalize
Class NormalizeDoubleWrap
java.lang.Object
org.opt4j.operator.normalize.NormalizeDoubleElementwise
org.opt4j.operator.normalize.NormalizeDoubleWrap
- All Implemented Interfaces:
Operator<DoubleGenotype>
,Normalize<DoubleGenotype>
,NormalizeDouble
The
NormalizeDoubleWrap
normalizes the DoubleGenotype
by
wrapping the values at the borders.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
normalize
(double value, double lb, double ub) Normalize a double value.Methods inherited from class org.opt4j.operator.normalize.NormalizeDoubleElementwise
normalize
-
Constructor Details
-
NormalizeDoubleWrap
public NormalizeDoubleWrap()
-
-
Method Details
-
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
-