public abstract class AbstractSimilarityQuery<O,D extends Distance<D>> extends AbstractDataBasedQuery<O> implements SimilarityQuery<O,D>
relation
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 |
---|---|
abstract D |
similarity(DBID id1,
DBID id2)
Returns the distance between the two objects specified by their object ids.
|
abstract D |
similarity(DBID id1,
O o2)
Returns the distance between the two objects specified by their object ids.
|
abstract D |
similarity(O o1,
DBID id2)
Returns the distance between the two objects specified by their object ids.
|
abstract D |
similarity(O o1,
O o2)
Returns the distance between the two objects specified by their object ids.
|
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDistanceFactory, getRelation
public abstract D similarity(DBID id1, DBID id2)
similarity
in interface SimilarityQuery<O,D extends Distance<D>>
id1
- first object idid2
- second object idpublic abstract D similarity(O o1, DBID id2)
similarity
in interface SimilarityQuery<O,D extends Distance<D>>
o1
- first objectid2
- second object idpublic abstract D similarity(DBID id1, O o2)
similarity
in interface SimilarityQuery<O,D extends Distance<D>>
id1
- first object ido2
- second objectpublic abstract D similarity(O o1, O o2)
similarity
in interface SimilarityQuery<O,D extends Distance<D>>
o1
- first objecto2
- second object