smile.math.distance
Class SparseChebyshevDistance
- java.lang.Object
-
- smile.math.distance.SparseChebyshevDistance
-
- All Implemented Interfaces:
- java.io.Serializable, Distance<SparseArray>, Metric<SparseArray>
public class SparseChebyshevDistance extends java.lang.Object implements Metric<SparseArray>, 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 SparseChebyshevDistance()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubled(SparseArray x, SparseArray y)Returns the distance measure between two objects.java.lang.StringtoString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
d
public double d(SparseArray x, SparseArray y)
Description copied from interface:DistanceReturns the distance measure between two objects.- Specified by:
din interfaceDistance<SparseArray>
-
-
DataMelt 3.0 © DataMelt by jWork.ORG