|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery<O> de.lmu.ifi.dbs.elki.database.query.distance.AbstractDistanceQuery<O,D>
public abstract class AbstractDistanceQuery<O,D extends Distance<D>>
A distance query serves as adapter layer for database and primitive distances.
Field Summary |
---|
Fields inherited from class de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery |
---|
relation |
Fields inherited from interface de.lmu.ifi.dbs.elki.database.query.DatabaseQuery |
---|
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE |
Constructor Summary | |
---|---|
AbstractDistanceQuery(Relation<? extends O> relation)
Constructor. |
Method Summary | |
---|---|
abstract D |
distance(DBID id1,
DBID id2)
Returns the distance between the two objects specified by their object ids. |
abstract D |
distance(DBID id1,
O o2)
Returns the distance between the two objects specified by their object ids. |
abstract D |
distance(O o1,
DBID id2)
Returns the distance between the two objects specified by their object ids. |
abstract D |
distance(O o1,
O o2)
Returns the distance between the two objects specified by their object ids. |
D |
getDistanceFactory()
Method to get the distance functions factory. |
D |
infiniteDistance()
Provides an infinite distance. |
D |
nullDistance()
Provides a null distance. |
D |
undefinedDistance()
Provides an undefined distance. |
Methods inherited from class de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery |
---|
getRelation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.database.query.distance.DistanceQuery |
---|
getDistanceFunction, getRelation |
Constructor Detail |
---|
public AbstractDistanceQuery(Relation<? extends O> relation)
relation
- Relation to use.Method Detail |
---|
public abstract D distance(DBID id1, DBID id2)
distance
in interface DistanceQuery<O,D extends Distance<D>>
id1
- first object idid2
- second object id
public abstract D distance(O o1, DBID id2)
distance
in interface DistanceQuery<O,D extends Distance<D>>
o1
- first objectid2
- second object id
public abstract D distance(DBID id1, O o2)
distance
in interface DistanceQuery<O,D extends Distance<D>>
id1
- first object ido2
- second object
public abstract D distance(O o1, O o2)
distance
in interface DistanceQuery<O,D extends Distance<D>>
o1
- first objecto2
- second object
public D getDistanceFactory()
DistanceQuery
getDistanceFactory
in interface DistanceQuery<O,D extends Distance<D>>
public D infiniteDistance()
infiniteDistance
in interface DistanceQuery<O,D extends Distance<D>>
public D nullDistance()
nullDistance
in interface DistanceQuery<O,D extends Distance<D>>
public D undefinedDistance()
undefinedDistance
in interface DistanceQuery<O,D extends Distance<D>>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |