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(DBIDRef id1,
O o2)
Returns the distance between the two objects specified by their object ids.
|
D |
similarity(O o1,
DBIDRef 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, getSimilarityFunction
public D similarity(O o1, DBIDRef 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(DBIDRef 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