Package elki.database.query.similarity
Interface DatabaseSimilarityQuery<O>
-
- Type Parameters:
O
- relation object type.
- All Superinterfaces:
SimilarityQuery<O>
- All Known Subinterfaces:
IndexBasedSimilarity.Instance<T,I>
- All Known Implementing Classes:
AbstractIndexBasedSimilarity.Instance
,FractionalSharedNearestNeighborSimilarity.Instance
,SharedNearestNeighborSimilarity.Instance
public interface DatabaseSimilarityQuery<O> extends SimilarityQuery<O>
Run a database query in a database context.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default double
similarity(DBIDRef id1, O o2)
Returns the similarity between the two objects specified by their object ids.default double
similarity(O o1, DBIDRef id2)
Returns the similarity between the two objects specified by their object ids.default double
similarity(O o1, O o2)
Returns the similarity between the two objects specified by their object ids.-
Methods inherited from interface elki.database.query.similarity.SimilarityQuery
getRelation, getSimilarity, similarity
-
-
-
-
Method Detail
-
similarity
default double similarity(O o1, DBIDRef id2)
Description copied from interface:SimilarityQuery
Returns the similarity between the two objects specified by their object ids.- Specified by:
similarity
in interfaceSimilarityQuery<O>
- Parameters:
o1
- first objectid2
- second object id- Returns:
- the similarity between the two objects specified by their object ids
-
similarity
default double similarity(DBIDRef id1, O o2)
Description copied from interface:SimilarityQuery
Returns the similarity between the two objects specified by their object ids.- Specified by:
similarity
in interfaceSimilarityQuery<O>
- Parameters:
id1
- first object ido2
- second object- Returns:
- the similarity between the two objects specified by their object ids
-
similarity
default double similarity(O o1, O o2)
Description copied from interface:SimilarityQuery
Returns the similarity between the two objects specified by their object ids.- Specified by:
similarity
in interfaceSimilarityQuery<O>
- Parameters:
o1
- first objecto2
- second object- Returns:
- the similarity between the two objects specified by their object ids
-
-