Class SharedNearestNeighborSimilarity.Instance<O>

    • Method Detail

      • similarity

        public double similarity​(DBIDRef id1,
                                 DBIDRef id2)
        Description copied from interface: SimilarityQuery
        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
      • getSimilarity

        public Similarity<? super O> getSimilarity()
        Description copied from interface: SimilarityQuery
        Get the inner similarity function.
        Returns:
        Similarity function