Class Distance

java.lang.Object
org.ojalgo.data.proximity.Distance

public abstract class Distance extends Object
  • Constructor Details

    • Distance

      public Distance()
  • Method Details

    • angular

      public static double angular(float[] a, float[] b)
    • canberra

      public static double canberra(float[] a, float[] b)
    • chebyshev

      public static double chebyshev(float[] a, float[] b)
    • correlation

      public static double correlation(float[] a, float[] b)
    • cosine

      public static double cosine(Access1D<?> a, Access1D<?> b)
      Cosine distance for matrices = 1 - cosine similarity.
    • cosine

      public static double cosine(double[] a, double[] b)
      Cosine distance = 1 - cosine similarity. Range [0, 2].
    • cosine

      public static double cosine(float[] a, float[] b)
    • euclidean

      public static double euclidean(float[] a, float[] b)
    • hamming

      public static double hamming(float[] a, float[] b)
    • hellinger

      public static double hellinger(float[] a, float[] b)
    • jaccard

      public static double jaccard(float[] a, float[] b)
    • manhattan

      public static double manhattan(float[] a, float[] b)
    • squaredEuclidean

      public static double squaredEuclidean(float[] a, float[] b)