de.lmu.ifi.dbs.elki.database.query.distance
Class AbstractDatabaseDistanceQuery<O,D extends Distance<D>>
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.AbstractDatabaseDistanceQuery<O,D>
- Type Parameters:
O
- Database object type.D
- Distance result type.
- All Implemented Interfaces:
- DatabaseQuery, DistanceQuery<O,D>
- Direct Known Subclasses:
- AbstractDatabaseDistanceFunction.Instance, AbstractIndexBasedDistanceFunction.Instance, DBIDDistanceQuery, MinKDistance.Instance
public abstract class AbstractDatabaseDistanceQuery<O,D extends Distance<D>>
- extends AbstractDistanceQuery<O,D>
Run a database query in a database context.
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDatabaseDistanceQuery
public AbstractDatabaseDistanceQuery(Relation<? extends O> relation)
- Constructor.
- Parameters:
relation
- Relation to use.
distance
public D distance(O o1,
DBID id2)
- Description copied from class:
AbstractDistanceQuery
- Returns the distance between the two objects specified by their object ids.
- Specified by:
distance
in interface DistanceQuery<O,D extends Distance<D>>
- Specified by:
distance
in class AbstractDistanceQuery<O,D extends Distance<D>>
- Parameters:
o1
- first objectid2
- second object id
- Returns:
- the distance between the two objects specified by their object ids
distance
public D distance(DBID id1,
O o2)
- Description copied from class:
AbstractDistanceQuery
- Returns the distance between the two objects specified by their object ids.
- Specified by:
distance
in interface DistanceQuery<O,D extends Distance<D>>
- Specified by:
distance
in class AbstractDistanceQuery<O,D extends Distance<D>>
- Parameters:
id1
- first object ido2
- second object
- Returns:
- the distance between the two objects specified by their object ids
distance
public D distance(O o1,
O o2)
- Description copied from class:
AbstractDistanceQuery
- Returns the distance between the two objects specified by their object ids.
- Specified by:
distance
in interface DistanceQuery<O,D extends Distance<D>>
- Specified by:
distance
in class AbstractDistanceQuery<O,D extends Distance<D>>
- Parameters:
o1
- first objecto2
- second object
- Returns:
- the distance between the two objects specified by their object ids