Interface IInstanceNormCalc

All Known Subinterfaces:
DotProduct
All Known Implementing Classes:
DotProductEuclidean

public interface IInstanceNormCalc
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    norm(weka.core.Instance vec)
    Calculates the norm of the instance.
    weka.core.Instance
    normalize(weka.core.Instance inst)
    Returns normalized instance.
  • Method Details

    • norm

      double norm(weka.core.Instance vec) throws Exception
      Calculates the norm of the instance. Only numeric attributes are used.
      Parameters:
      vec -
      Returns:
      vector/instance norm
      Throws:
      Exception
      Since:
      1.4.0
    • normalize

      weka.core.Instance normalize(weka.core.Instance inst) throws Exception
      Returns normalized instance. Only numeric attributes are normalized. If the norm of the vector is 0, then the vector is not normalized.
      Parameters:
      inst - -- instance to normalize
      Returns:
      Throws:
      Exception
      Since:
      1.4.0