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