smile.math.distance
Class ChebyshevDistance
- java.lang.Object
-
- smile.math.distance.ChebyshevDistance
-
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 doubled(double[] x, double[] y)Chebyshev distance between the two arrays of type double.static doubled(float[] x, float[] y)Chebyshev distance between the two arrays of type float.static doubled(int[] x, int[] y)Chebyshev distance between the two arrays of type integer.java.lang.StringtoString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG