Class Normalizer

java.lang.Object
org.tribuo.math.util.Normalizer
All Implemented Interfaces:
Serializable, VectorNormalizer

public class Normalizer extends Object implements VectorNormalizer, Serializable
Normalizes, but first subtracts the minimum value (to ensure positivity).
See Also:
  • Constructor Details

  • Method Details

    • normalize

      public double[] normalize(double[] input)
      Description copied from interface: VectorNormalizer
      Normalizes the input array in some fashion specified by the class.
      Specified by:
      normalize in interface VectorNormalizer
      Parameters:
      input - The input to normalize.
      Returns:
      The normalized array.