Package elki.database.query.distance
Interface DatabaseDistanceQuery<O>
-
- Type Parameters:
O- relation object type.
- All Superinterfaces:
DistanceQuery<O>
- All Known Subinterfaces:
IndexBasedDistance.Instance<T,I>
- All Known Implementing Classes:
AbstractDatabaseDistance.Instance,AbstractIndexBasedDistance.Instance,AbstractSimilarityAdapter.Instance,ArccosSimilarityAdapter.Instance,DBIDDistanceQuery,DBIDRangeDistanceQuery,LinearSimilarityAdapter.Instance,LnSimilarityAdapter.Instance,PrecomputedDistanceMatrix.PrecomputedDistanceQuery,SharedNearestNeighborJaccardDistance.Instance
public interface DatabaseDistanceQuery<O> extends DistanceQuery<O>
Run a database query in a database context.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default doubledistance(DBIDRef id1, O o2)Returns the distance between the two objects specified by their object ids.default doubledistance(O o1, DBIDRef id2)Returns the distance between the two objects specified by their object ids.default doubledistance(O o1, O o2)Returns the distance between the two objects specified by their object ids.-
Methods inherited from interface elki.database.query.distance.DistanceQuery
distance, getDistance, getRelation
-
-
-
-
Method Detail
-
distance
default double distance(O o1, DBIDRef id2)
Description copied from interface:DistanceQueryReturns the distance between the two objects specified by their object ids.- Specified by:
distancein interfaceDistanceQuery<O>- Parameters:
o1- first objectid2- second object id- Returns:
- the distance between the two objects specified by their object ids
-
distance
default double distance(DBIDRef id1, O o2)
Description copied from interface:DistanceQueryReturns the distance between the two objects specified by their object ids.- Specified by:
distancein interfaceDistanceQuery<O>- Parameters:
id1- first object ido2- second object- Returns:
- the distance between the two objects specified by their object ids
-
distance
default double distance(O o1, O o2)
Description copied from interface:DistanceQueryReturns the distance between the two objects specified by their object ids.- Specified by:
distancein interfaceDistanceQuery<O>- Parameters:
o1- first objecto2- second object- Returns:
- the distance between the two objects specified by their object ids
-
-