Interface ItemDistance
- All Known Implementing Classes:
GeometryItemDistance
,IndexedFacetDistance.FacetSequenceDistance
,MinimumClearance.MinClearanceDistance
public interface ItemDistance
A function method which computes the distance
between two
ItemBoundable
s in an STRtree
.
Used for Nearest Neighbour searches.-
Method Summary
Modifier and TypeMethodDescriptiondouble
distance
(ItemBoundable item1, ItemBoundable item2) Computes the distance between two items.
-
Method Details
-
distance
Computes the distance between two items.- Parameters:
item1
-item2
-- Returns:
- the distance between the items
- Throws:
IllegalArgumentException
- if the metric is not applicable to the arguments
-