O
- Database object type.D
- Distance result type.public abstract class AbstractDBIDSimilarityQuery<O,D extends Distance<D>> extends AbstractSimilarityQuery<O,D>
relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
AbstractDBIDSimilarityQuery(Relation<? extends O> relation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
D |
similarity(DBID id1,
O o2)
Returns the distance between the two objects specified by their object ids.
|
D |
similarity(O o1,
DBID id2)
Returns the distance between the two objects specified by their object ids.
|
D |
similarity(O o1,
O o2)
Returns the distance between the two objects specified by their object ids.
|
similarity
getRelation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDistanceFactory, getRelation
public D similarity(O o1, DBID id2)
AbstractSimilarityQuery
similarity
in interface SimilarityQuery<O,D extends Distance<D>>
similarity
in class AbstractSimilarityQuery<O,D extends Distance<D>>
o1
- first objectid2
- second object idpublic D similarity(DBID id1, O o2)
AbstractSimilarityQuery
similarity
in interface SimilarityQuery<O,D extends Distance<D>>
similarity
in class AbstractSimilarityQuery<O,D extends Distance<D>>
id1
- first object ido2
- second objectpublic D similarity(O o1, O o2)
AbstractSimilarityQuery
similarity
in interface SimilarityQuery<O,D extends Distance<D>>
similarity
in class AbstractSimilarityQuery<O,D extends Distance<D>>
o1
- first objecto2
- second object