Package smile.math.distance
Class SparseChebyshevDistance
java.lang.Object
smile.math.distance.SparseChebyshevDistance
- All Implemented Interfaces:
Serializable
,ToDoubleBiFunction<SparseArray,
,SparseArray> Distance<SparseArray>
,Metric<SparseArray>
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:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
d
(SparseArray x, SparseArray y) Returns the distance measure between two objects.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface smile.math.distance.Distance
apply, applyAsDouble, D, D
-
Constructor Details
-
SparseChebyshevDistance
public SparseChebyshevDistance()Constructor.
-
-
Method Details