Package elki.similarity
Class AbstractIndexBasedSimilarity.Instance<O,I extends Index>
- java.lang.Object
-
- elki.similarity.AbstractIndexBasedSimilarity.Instance<O,I>
-
- Type Parameters:
O
- Object typeI
- Index type
- All Implemented Interfaces:
DatabaseSimilarityQuery<O>
,SimilarityQuery<O>
,IndexBasedSimilarity.Instance<O,I>
- Direct Known Subclasses:
FractionalSharedNearestNeighborSimilarity.Instance
,SharedNearestNeighborSimilarity.Instance
- Enclosing class:
- AbstractIndexBasedSimilarity<O,F extends IndexFactory<O>>
public abstract static class AbstractIndexBasedSimilarity.Instance<O,I extends Index> extends java.lang.Object implements IndexBasedSimilarity.Instance<O,I>
The actual instance bound to a particular database.- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I
getIndex()
Get the index used.Relation<? extends O>
getRelation()
Access the underlying data query.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.database.query.similarity.DatabaseSimilarityQuery
similarity, similarity, similarity
-
Methods inherited from interface elki.database.query.similarity.SimilarityQuery
getSimilarity, similarity
-
-
-
-
Method Detail
-
getRelation
public Relation<? extends O> getRelation()
Description copied from interface:SimilarityQuery
Access the underlying data query.- Specified by:
getRelation
in interfaceSimilarityQuery<O>
- Returns:
- data query in use
-
getIndex
public I getIndex()
Description copied from interface:IndexBasedSimilarity.Instance
Get the index used.- Specified by:
getIndex
in interfaceIndexBasedSimilarity.Instance<O,I extends Index>
- Returns:
- the index used
-
-