
public interface SimilarityQuery<O,D extends Distance<?>> extends DatabaseQuery
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE| Modifier and Type | Method and Description | 
|---|---|
| D | getDistanceFactory()Method to get the distance functions factory. | 
| Relation<? extends O> | getRelation()Access the underlying data query. | 
| D | similarity(DBIDRef id1,
          DBIDRef id2)Returns the similarity between the two objects specified by their object
 ids. | 
| D | similarity(DBIDRef id1,
          O o2)Returns the similarity between the two objects specified by their object
 ids. | 
| D | similarity(O o1,
          DBIDRef id2)Returns the similarity between the two objects specified by their object
 ids. | 
| D | similarity(O o1,
          O o2)Returns the similarity between the two objects specified by their object
 ids. | 
D similarity(DBIDRef id1, DBIDRef id2)
id1 - first object idid2 - second object idD similarity(O o1, DBIDRef id2)
o1 - first objectid2 - second object idD similarity(DBIDRef id1, O o2)
id1 - first object ido2 - second objectD similarity(O o1, O o2)
o1 - first objecto2 - second objectD getDistanceFactory()