O
- Object typepublic static class SharedNearestNeighborSimilarityFunction.Instance<O> extends AbstractIndexBasedSimilarityFunction.Instance<O,SharedNearestNeighborIndex<O>,SetDBIDs,IntegerDistance>
index
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
SharedNearestNeighborSimilarityFunction.Instance(Relation<O> database,
SharedNearestNeighborIndex<O> preprocessor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
IntegerDistance |
getDistanceFactory()
Method to get the distance functions factory.
|
IntegerDistance |
similarity(DBID id1,
DBID id2)
Returns the distance between the two objects specified by their object ids.
|
getIndex
similarity, similarity, similarity
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRelation, similarity, similarity, similarity
public SharedNearestNeighborSimilarityFunction.Instance(Relation<O> database, SharedNearestNeighborIndex<O> preprocessor)
database
- Databasepreprocessor
- Indexpublic IntegerDistance similarity(DBID id1, DBID id2)
AbstractSimilarityQuery
similarity
in interface SimilarityQuery<O,IntegerDistance>
similarity
in class AbstractSimilarityQuery<O,IntegerDistance>
id1
- first object idid2
- second object idpublic IntegerDistance getDistanceFactory()
SimilarityQuery