Class NormalizeDoubleElementwise

java.lang.Object
org.opt4j.operators.normalize.NormalizeDoubleElementwise
All Implemented Interfaces:
Operator<DoubleGenotype>, Normalize<DoubleGenotype>, NormalizeDouble
Direct Known Subclasses:
NormalizeDoubleBorder, NormalizeDoubleMirror, NormalizeDoubleWrap

public abstract class NormalizeDoubleElementwise extends Object implements NormalizeDouble

The NormalizeDoubleElementwise normalizes DoubleGenotypes elementwise.

  • Constructor Details

  • Method Details

    • normalize

      public void normalize(DoubleGenotype genotype)
      Description copied from interface: Normalize
      Normalizes the Genotype .
      Specified by:
      normalize in interface Normalize<DoubleGenotype>
      Parameters:
      genotype - the genotype to be normalized
    • normalize

      public abstract double normalize(double value, double lb, double ub)
      Normalize a double value.
      Parameters:
      value - the value to be normalized
      lb - the lower bound
      ub - the upper bound
      Returns:
      a normalize value in the bounds