|
||||||||||
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> de.lmu.ifi.dbs.elki.database.query.distance.PrimitiveDistanceQuery<O,D>
O
- Database object type.D
- Distance result type.public class PrimitiveDistanceQuery<O,D extends Distance<D>>
Run a database query in a database context.
Field Summary | |
---|---|
protected PrimitiveDistanceFunction<? super O,D> |
distanceFunction
The distance function we use. |
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 | |
---|---|
PrimitiveDistanceQuery(Relation<? extends O> relation,
PrimitiveDistanceFunction<? super O,D> distanceFunction)
Constructor. |
Method Summary | |
---|---|
D |
distance(DBID id1,
DBID id2)
Returns the distance between the two objects specified by their object ids. |
D |
distance(DBID id1,
O o2)
Returns the distance between the two objects specified by their object ids. |
D |
distance(O o1,
DBID id2)
Returns the distance between the two objects specified by their object ids. |
D |
distance(O o1,
O o2)
Returns the distance between the two objects specified by their object ids. |
PrimitiveDistanceFunction<? super O,D> |
getDistanceFunction()
Get the inner distance function. |
Methods inherited from class de.lmu.ifi.dbs.elki.database.query.distance.AbstractDistanceQuery |
---|
getDistanceFactory, infiniteDistance, nullDistance, undefinedDistance |
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 |
---|
getRelation |
Field Detail |
---|
protected final PrimitiveDistanceFunction<? super O,D extends Distance<D>> distanceFunction
Constructor Detail |
---|
public PrimitiveDistanceQuery(Relation<? extends O> relation, PrimitiveDistanceFunction<? super O,D> distanceFunction)
relation
- Representation to use.distanceFunction
- Our distance functionMethod Detail |
---|
public D distance(DBID id1, DBID id2)
AbstractDistanceQuery
distance
in interface DistanceQuery<O,D extends Distance<D>>
distance
in class AbstractDistanceQuery<O,D extends Distance<D>>
id1
- first object idid2
- second object id
public D distance(O o1, DBID id2)
AbstractDistanceQuery
distance
in interface DistanceQuery<O,D extends Distance<D>>
distance
in class AbstractDistanceQuery<O,D extends Distance<D>>
o1
- first objectid2
- second object id
public D distance(DBID id1, O o2)
AbstractDistanceQuery
distance
in interface DistanceQuery<O,D extends Distance<D>>
distance
in class AbstractDistanceQuery<O,D extends Distance<D>>
id1
- first object ido2
- second object
public D distance(O o1, O o2)
AbstractDistanceQuery
distance
in interface DistanceQuery<O,D extends Distance<D>>
distance
in class AbstractDistanceQuery<O,D extends Distance<D>>
o1
- first objecto2
- second object
public PrimitiveDistanceFunction<? super O,D> getDistanceFunction()
DistanceQuery
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |