O
- Object typepublic static class SharedNearestNeighborSimilarityFunction.Instance<O> extends AbstractIndexBasedSimilarityFunction.Instance<O,SharedNearestNeighborIndex<O>>
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 |
---|
Instance(Relation<O> database,
SharedNearestNeighborIndex<O> preprocessor,
SharedNearestNeighborSimilarityFunction<? super O> similarityFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SimilarityFunction<? super O> |
getSimilarityFunction()
Get the inner similarity function.
|
double |
similarity(DBIDRef id1,
DBIDRef id2)
Returns the similarity between the two objects specified by their object
ids.
|
getIndex, getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
similarity, similarity, similarity
private SharedNearestNeighborSimilarityFunction<? super O> similarityFunction
public Instance(Relation<O> database, SharedNearestNeighborIndex<O> preprocessor, SharedNearestNeighborSimilarityFunction<? super O> similarityFunction)
database
- Databasepreprocessor
- Indexpublic double similarity(DBIDRef id1, DBIDRef id2)
SimilarityQuery
id1
- first object idid2
- second object idpublic SimilarityFunction<? super O> getSimilarityFunction()
SimilarityQuery
Copyright © 2019 ELKI Development Team. License information.