Package elki.index.distancematrix
Class PrecomputedSimilarityMatrix.PrecomputedSimilarityQuery
- java.lang.Object
-
- elki.index.distancematrix.PrecomputedSimilarityMatrix.PrecomputedSimilarityQuery
-
- All Implemented Interfaces:
SimilarityQuery<O>
- Enclosing class:
- PrecomputedSimilarityMatrix<O>
private class PrecomputedSimilarityMatrix.PrecomputedSimilarityQuery extends java.lang.Object implements SimilarityQuery<O>
Similarity query using the precomputed matrix.- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Modifier Constructor Description privatePrecomputedSimilarityQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Relation<? extends O>getRelation()Access the underlying data query.Similarity<? super O>getSimilarity()Get the inner similarity function.doublesimilarity(DBIDRef id1, DBIDRef id2)Returns the similarity between the two objects specified by their object ids.doublesimilarity(DBIDRef id1, O o2)Returns the similarity between the two objects specified by their object ids.doublesimilarity(O o1, DBIDRef id2)Returns the similarity between the two objects specified by their object ids.doublesimilarity(O o1, O o2)Returns the similarity between the two objects specified by their object ids.
-
-
-
Method Detail
-
similarity
public double similarity(DBIDRef id1, DBIDRef id2)
Description copied from interface:SimilarityQueryReturns the similarity between the two objects specified by their object ids.- Specified by:
similarityin interfaceSimilarityQuery<O>- Parameters:
id1- first object idid2- second object id- Returns:
- the similarity between the two objects specified by their object ids
-
similarity
public double similarity(O o1, DBIDRef id2)
Description copied from interface:SimilarityQueryReturns the similarity between the two objects specified by their object ids.- Specified by:
similarityin interfaceSimilarityQuery<O>- Parameters:
o1- first objectid2- second object id- Returns:
- the similarity between the two objects specified by their object ids
-
similarity
public double similarity(DBIDRef id1, O o2)
Description copied from interface:SimilarityQueryReturns the similarity between the two objects specified by their object ids.- Specified by:
similarityin interfaceSimilarityQuery<O>- Parameters:
id1- first object ido2- second object- Returns:
- the similarity between the two objects specified by their object ids
-
similarity
public double similarity(O o1, O o2)
Description copied from interface:SimilarityQueryReturns the similarity between the two objects specified by their object ids.- Specified by:
similarityin interfaceSimilarityQuery<O>- Parameters:
o1- first objecto2- second object- Returns:
- the similarity between the two objects specified by their object ids
-
getSimilarity
public Similarity<? super O> getSimilarity()
Description copied from interface:SimilarityQueryGet the inner similarity function.- Specified by:
getSimilarityin interfaceSimilarityQuery<O>- Returns:
- Similarity function
-
getRelation
public Relation<? extends O> getRelation()
Description copied from interface:SimilarityQueryAccess the underlying data query.- Specified by:
getRelationin interfaceSimilarityQuery<O>- Returns:
- data query in use
-
-