O
- Input object typepublic interface SimilarityQuery<O> extends DatabaseQuery
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
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.
|
double similarity(DBIDRef id1, DBIDRef id2)
id1
- first object idid2
- second object iddouble similarity(O o1, DBIDRef id2)
o1
- first objectid2
- second object iddouble similarity(DBIDRef id1, O o2)
id1
- first object ido2
- second objectdouble similarity(O o1, O o2)
o1
- first objecto2
- second objectRelation<? extends O> getRelation()
SimilarityFunction<? super O> getSimilarityFunction()
Copyright © 2019 ELKI Development Team. License information.