public class NormalizeDoubleBorder extends NormalizeDoubleElementwise
NormalizeDoubleBorder normalizes the DoubleGenotype by
setting the values to the borders if the bounds are violated.| Constructor and Description |
|---|
NormalizeDoubleBorder() |
| Modifier and Type | Method and Description |
|---|---|
double |
normalize(double value,
double lb,
double ub)
Normalize a double value.
|
normalizepublic double normalize(double value,
double lb,
double ub)
NormalizeDoubleElementwisenormalize in class NormalizeDoubleElementwisevalue - the value to be normalizedlb - the lower boundub - the upper bound