Interface SimilarityQuery<O>

    • Method Detail

      • similarity

        double similarity​(DBIDRef id1,
                          DBIDRef id2)
        Returns the similarity between the two objects specified by their object ids.
        Parameters:
        id1 - first object id
        id2 - second object id
        Returns:
        the similarity between the two objects specified by their object ids
      • similarity

        double similarity​(O o1,
                          DBIDRef id2)
        Returns the similarity between the two objects specified by their object ids.
        Parameters:
        o1 - first object
        id2 - second object id
        Returns:
        the similarity between the two objects specified by their object ids
      • similarity

        double similarity​(DBIDRef id1,
                          O o2)
        Returns the similarity between the two objects specified by their object ids.
        Parameters:
        id1 - first object id
        o2 - second object
        Returns:
        the similarity between the two objects specified by their object ids
      • similarity

        double similarity​(O o1,
                          O o2)
        Returns the similarity between the two objects specified by their object ids.
        Parameters:
        o1 - first object
        o2 - second object
        Returns:
        the similarity between the two objects specified by their object ids
      • getRelation

        Relation<? extends O> getRelation()
        Access the underlying data query.
        Returns:
        data query in use
      • getSimilarity

        Similarity<? super O> getSimilarity()
        Get the inner similarity function.
        Returns:
        Similarity function