Package smile.math.distance
Interface Distance<T>
-
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
Metric<T>
public interface Distance<T> extends java.io.Serializable
An interface to calculate a distance measure between two objects. A distance function maps pairs of points into the nonnegative reals and has to satisfy- non-negativity: d(x, y) ≥ 0
- isolation: d(x, y) = 0 if and only if x = y
- symmetry: d(x, y) = d(x, y)
- Author:
- Haifeng Li
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
d(T x, T y)
Returns the distance measure between two objects.
-