de.lmu.ifi.dbs.elki.distance.similarityfunction
Class AbstractIndexBasedSimilarityFunction.Instance<O,I extends Index,R,D extends Distance<D>>
java.lang.Object
de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery<O>
de.lmu.ifi.dbs.elki.database.query.similarity.AbstractSimilarityQuery<O,D>
de.lmu.ifi.dbs.elki.database.query.similarity.AbstractDBIDSimilarityQuery<O,D>
de.lmu.ifi.dbs.elki.distance.similarityfunction.AbstractIndexBasedSimilarityFunction.Instance<O,I,R,D>
- Type Parameters:
O
- Object typeI
- Index typeD
- Distance result type
- All Implemented Interfaces:
- DatabaseQuery, SimilarityQuery<O,D>, IndexBasedSimilarityFunction.Instance<O,I,D>
- Direct Known Subclasses:
- FractionalSharedNearestNeighborSimilarityFunction.Instance, SharedNearestNeighborSimilarityFunction.Instance
- Enclosing class:
- AbstractIndexBasedSimilarityFunction<O,I extends Index,R,D extends Distance<D>>
public abstract static class AbstractIndexBasedSimilarityFunction.Instance<O,I extends Index,R,D extends Distance<D>>
- extends AbstractDBIDSimilarityQuery<O,D>
- implements IndexBasedSimilarityFunction.Instance<O,I,D>
The actual instance bound to a particular database.
Field Summary |
protected I |
index
Parent index |
Method Summary |
I |
getIndex()
Get the index used. |
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
- Parent index
AbstractIndexBasedSimilarityFunction.Instance
public AbstractIndexBasedSimilarityFunction.Instance(Relation<O> database,
I index)
- Constructor.
- Parameters:
database
- Databaseindex
- Index to use
getIndex
public I getIndex()
- Description copied from interface:
IndexBasedSimilarityFunction.Instance
- Get the index used.
- Specified by:
getIndex
in interface IndexBasedSimilarityFunction.Instance<O,I extends Index,D extends Distance<D>>
- Returns:
- the index used