private class PrecomputedSimilarityMatrix.PrecomputedSimilarityQuery extends java.lang.Object implements SimilarityQuery<O>
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Modifier | Constructor and Description |
---|---|
private |
PrecomputedSimilarityQuery() |
Modifier and Type | Method and Description |
---|---|
Relation<? extends O> |
getRelation()
Access the underlying data query.
|
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.
|
double |
similarity(DBIDRef id1,
O o2)
Returns the similarity between the two objects specified by their object
ids.
|
double |
similarity(O o1,
DBIDRef id2)
Returns the similarity between the two objects specified by their object
ids.
|
double |
similarity(O o1,
O o2)
Returns the similarity between the two objects specified by their object
ids.
|
public double similarity(DBIDRef id1, DBIDRef id2)
SimilarityQuery
similarity
in interface SimilarityQuery<O>
id1
- first object idid2
- second object idpublic double similarity(O o1, DBIDRef id2)
SimilarityQuery
similarity
in interface SimilarityQuery<O>
o1
- first objectid2
- second object idpublic double similarity(DBIDRef id1, O o2)
SimilarityQuery
similarity
in interface SimilarityQuery<O>
id1
- first object ido2
- second objectpublic double similarity(O o1, O o2)
SimilarityQuery
similarity
in interface SimilarityQuery<O>
o1
- first objecto2
- second objectpublic SimilarityFunction<? super O> getSimilarityFunction()
SimilarityQuery
getSimilarityFunction
in interface SimilarityQuery<O>
public Relation<? extends O> getRelation()
SimilarityQuery
getRelation
in interface SimilarityQuery<O>
Copyright © 2019 ELKI Development Team. License information.