O
- Input object typepublic abstract class AbstractSimilarityQuery<O> extends Object implements SimilarityQuery<O>
Modifier and Type | Field and Description |
---|---|
protected Relation<? extends O> |
relation
The data to use for this query
|
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
AbstractSimilarityQuery(Relation<? extends O> relation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Relation<? extends O> |
getRelation()
Access the underlying data query.
|
abstract double |
similarity(DBIDRef id1,
DBIDRef id2)
Returns the distance between the two objects specified by their object ids.
|
abstract double |
similarity(DBIDRef id1,
O o2)
Returns the distance between the two objects specified by their object ids.
|
abstract double |
similarity(O o1,
DBIDRef id2)
Returns the distance between the two objects specified by their object ids.
|
abstract double |
similarity(O o1,
O o2)
Returns the distance between the two objects specified by their object ids.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSimilarityFunction
public abstract double similarity(DBIDRef id1, DBIDRef id2)
similarity
in interface SimilarityQuery<O>
id1
- first object idid2
- second object idpublic abstract double similarity(O o1, DBIDRef id2)
similarity
in interface SimilarityQuery<O>
o1
- first objectid2
- second object idpublic abstract double similarity(DBIDRef id1, O o2)
similarity
in interface SimilarityQuery<O>
id1
- first object ido2
- second objectpublic abstract double similarity(O o1, O o2)
similarity
in interface SimilarityQuery<O>
o1
- first objecto2
- second objectpublic Relation<? extends O> getRelation()
SimilarityQuery
getRelation
in interface SimilarityQuery<O>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.