Class NormalizeDoubleWrap

java.lang.Object
org.opt4j.operator.normalize.NormalizeDoubleElementwise
org.opt4j.operator.normalize.NormalizeDoubleWrap
All Implemented Interfaces:
Operator<DoubleGenotype>, Normalize<DoubleGenotype>, NormalizeDouble

public class NormalizeDoubleWrap extends NormalizeDoubleElementwise
The NormalizeDoubleWrap normalizes the DoubleGenotype by wrapping the values at the borders.
  • 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 class NormalizeDoubleElementwise
      Parameters:
      value - the value to be normalized
      lb - the lower bound
      ub - the upper bound
      Returns:
      a normalize value in the bounds