lib.comparators
Interface Distanceator<T>
- Type Parameters:
T
-
- All Known Implementing Classes:
- ImageComparator
public interface Distanceator<T>
This interface should be implemented by classes that implement
a comparison between two object and return their distance-difference.
Several distance metrics may be supported.
Method Summary |
double |
distance(T obj1,
T obj2)
Distance between two given objects |
distance
double distance(T obj1,
T obj2)
- Distance between two given objects
- Parameters:
obj1
- the first object to compare toobj2
- the second object to compare with
- Returns:
- the distance as defined by a metric between the objects
- See Also:
Metric