Documentation of 'org.apache.commons.math3.ml.distance.EarthMoversDistance' Java class
EarthMoversDistance
org.apache.commons.math3.ml.distance

Class EarthMoversDistance

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double compute(double[] a, double[] b)
      Compute the distance between two n-dimensional vectors.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EarthMoversDistance

        public EarthMoversDistance()
    • Method Detail

      • compute

        public double compute(double[] a,
                              double[] b)
                       throws DimensionMismatchException
        Compute the distance between two n-dimensional vectors.

        The two vectors are required to have the same dimension.

        Specified by:
        compute in interface DistanceMeasure
        Parameters:
        a - the first vector
        b - the second vector
        Returns:
        the distance between the two vectors
        Throws:
        DimensionMismatchException - if the array lengths differ.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.