de.lmu.ifi.dbs.elki.distance.distancefunction
Class AbstractIndexBasedDistanceFunction.Instance<O,I extends Index,D extends Distance<D>,F extends DistanceFunction<? super O,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>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractIndexBasedDistanceFunction.Instance<O,I,D,F>
- Type Parameters:
O
- Object typeI
- Index typeD
- Distance typeF
- Distance function type
- All Implemented Interfaces:
- DatabaseQuery, DistanceQuery<O,D>, IndexBasedDistanceFunction.Instance<O,I,D>
- Direct Known Subclasses:
- AbstractPreferenceVectorBasedCorrelationDistanceFunction.Instance, ERiCDistanceFunction.Instance, LocallyWeightedDistanceFunction.Instance, PCABasedCorrelationDistanceFunction.Instance, SharedNearestNeighborJaccardDistanceFunction.Instance, SubspaceDistanceFunction.Instance
- Enclosing class:
- AbstractIndexBasedDistanceFunction<O,I extends Index,D extends Distance<D>>
public abstract static class AbstractIndexBasedDistanceFunction.Instance<O,I extends Index,D extends Distance<D>,F extends DistanceFunction<? super O,D>>
- extends AbstractDatabaseDistanceQuery<O,D>
- implements IndexBasedDistanceFunction.Instance<O,I,D>
The actual instance bound to a particular database.
Field Summary |
protected I |
index
Index we use |
protected F |
parent
Our parent distance function |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
index
protected final I extends Index index
- Index we use
parent
protected F extends DistanceFunction<? super O,D> parent
- Our parent distance function
AbstractIndexBasedDistanceFunction.Instance
public AbstractIndexBasedDistanceFunction.Instance(Relation<O> database,
I index,
F parent)
- Constructor.
- Parameters:
database
- Databaseindex
- Index to useparent
- Parent distance function
getIndex
public I getIndex()
- Description copied from interface:
IndexBasedDistanceFunction.Instance
- Get the index used.
- Specified by:
getIndex
in interface IndexBasedDistanceFunction.Instance<O,I extends Index,D extends Distance<D>>
- Returns:
- the index used
getDistanceFunction
public F getDistanceFunction()
- Description copied from interface:
DistanceQuery
- Get the inner distance function.
- Specified by:
getDistanceFunction
in interface DistanceQuery<O,D extends Distance<D>>
- Returns:
- Distance function