D
- Distance result type.public class DBIDDistanceQuery<D extends Distance<D>> extends AbstractDatabaseDistanceQuery<DBID,D>
Modifier and Type | Field and Description |
---|---|
protected DBIDDistanceFunction<D> |
distanceFunction
The distance function we use.
|
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
DBIDDistanceQuery(Relation<DBID> relation,
DBIDDistanceFunction<D> distanceFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
D |
distance(DBID id1,
DBID id2)
Returns the distance between the two objects specified by their object ids.
|
DBIDDistanceFunction<D> |
getDistanceFunction()
Get the inner distance function.
|
getDistanceFactory, infiniteDistance, nullDistance, undefinedDistance
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRelation
protected final DBIDDistanceFunction<D extends Distance<D>> distanceFunction
public DBIDDistanceQuery(Relation<DBID> relation, DBIDDistanceFunction<D> distanceFunction)
relation
- Database to use.distanceFunction
- Our distance functionpublic D distance(DBID id1, DBID id2)
AbstractDistanceQuery
public DBIDDistanceFunction<D> getDistanceFunction()
DistanceQuery