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 |
---|
SharedNearestNeighborSimilarityFunction.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 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 double similarity(DBIDRef id1, DBIDRef id2)
AbstractSimilarityQuery
similarity
in interface SimilarityQuery<O>
similarity
in class AbstractSimilarityQuery<O>
id1
- first object idid2
- second object idpublic SimilarityFunction<? super O> getSimilarityFunction()
SimilarityQuery
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.