Interface VectorNormalizer

All Superinterfaces:
Serializable
All Known Implementing Classes:
ExpNormalizer, NoopNormalizer, Normalizer, SigmoidNormalizer

public interface VectorNormalizer extends Serializable
A functional interface that generates a normalized version of a double array.
  • Method Summary

    Modifier and Type
    Method
    Description
    double[]
    normalize(double[] input)
    Normalizes the input array in some fashion specified by the class.
    default void
    normalizeInPlace(double[] input)
    In place normalization of the array.
  • Method Details

    • normalize

      double[] normalize(double[] input)
      Normalizes the input array in some fashion specified by the class.
      Parameters:
      input - The input to normalize.
      Returns:
      The normalized array.
    • normalizeInPlace

      default void normalizeInPlace(double[] input)
      In place normalization of the array.

      Note: This default implementation performs a copy by calling the standard normalize method.

      Parameters:
      input - The input to normalize.