Documentation of 'smile.math.distance.ChebyshevDistance' Java class
ChebyshevDistance
smile.math.distance

Class ChebyshevDistance

  • All Implemented Interfaces:
    java.io.Serializable, Distance<double[]>, Metric<double[]>


    public class ChebyshevDistance
    extends java.lang.Object
    implements Metric<double[]>, java.io.Serializable
    Chebyshev distance (or Tchebychev distance), or L metric is a metric defined on a vector space where the distance between two vectors is the greatest of their differences along any coordinate dimension.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      ChebyshevDistance()
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double d(double[] x, double[] y)
      Chebyshev distance between the two arrays of type double.
      static double d(float[] x, float[] y)
      Chebyshev distance between the two arrays of type float.
      static double d(int[] x, int[] y)
      Chebyshev distance between the two arrays of type integer.
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

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

      • ChebyshevDistance

        public ChebyshevDistance()
        Constructor.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • d

        public static double d(int[] x,
                               int[] y)
        Chebyshev distance between the two arrays of type integer.
      • d

        public static double d(float[] x,
                               float[] y)
        Chebyshev distance between the two arrays of type float. NaN will be treated as missing values and will be excluded from the calculation.
      • d

        public double d(double[] x,
                        double[] y)
        Chebyshev distance between the two arrays of type double. NaN will be treated as missing values and will be excluded from the calculation.
        Specified by:
        d in interface Distance<double[]>

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.