O
- Object typepublic static class SharedNearestNeighborSimilarityFunction.Instance<O> extends AbstractIndexBasedSimilarityFunction.Instance<O,SharedNearestNeighborIndex<O>,SetDBIDs,IntegerDistance>
Modifier and Type | Field and Description |
---|---|
private SharedNearestNeighborSimilarityFunction<? super O> |
similarityFunction
Similarity function.
|
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,
SharedNearestNeighborSimilarityFunction<? super O> similarityFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
IntegerDistance |
getDistanceFactory()
Method to get the distance functions factory.
|
SimilarityFunction<? super O,IntegerDistance> |
getSimilarityFunction()
Get the inner similarity function.
|
IntegerDistance |
similarity(DBIDRef id1,
DBIDRef 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
private SharedNearestNeighborSimilarityFunction<? super O> similarityFunction
public SharedNearestNeighborSimilarityFunction.Instance(Relation<O> database, SharedNearestNeighborIndex<O> preprocessor, SharedNearestNeighborSimilarityFunction<? super O> similarityFunction)
database
- Databasepreprocessor
- Indexpublic IntegerDistance similarity(DBIDRef id1, DBIDRef id2)
AbstractSimilarityQuery
similarity
in interface SimilarityQuery<O,IntegerDistance>
similarity
in class AbstractSimilarityQuery<O,IntegerDistance>
id1
- first object idid2
- second object idpublic IntegerDistance getDistanceFactory()
SimilarityQuery
public SimilarityFunction<? super O,IntegerDistance> getSimilarityFunction()
SimilarityQuery