Class CanberraDistance

    • Method Detail

      • compute

        public double compute​(double[] a,
                              double[] b)
        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