Class 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
    • 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.
      double similarity​(DBIDRef id1, DBIDRef id2)
      Returns the similarity between the two objects specified by their object ids.
      double similarity​(DBIDRef id1, O o2)
      Returns the similarity between the two objects specified by their object ids.
      double similarity​(O o1, DBIDRef id2)
      Returns the similarity between the two objects specified by their object ids.
      double similarity​(O o1, O o2)
      Returns the similarity between the two objects specified by their object ids.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PrecomputedSimilarityQuery

        private PrecomputedSimilarityQuery()
    • 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.
        Specified by:
        similarity in interface SimilarityQuery<O>
        Parameters:
        id1 - first object id
        id2 - 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: SimilarityQuery
        Returns the similarity between the two objects specified by their object ids.
        Specified by:
        similarity in interface SimilarityQuery<O>
        Parameters:
        o1 - first object
        id2 - 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: SimilarityQuery
        Returns the similarity between the two objects specified by their object ids.
        Specified by:
        similarity in interface SimilarityQuery<O>
        Parameters:
        id1 - first object id
        o2 - 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: SimilarityQuery
        Returns the similarity between the two objects specified by their object ids.
        Specified by:
        similarity in interface SimilarityQuery<O>
        Parameters:
        o1 - first object
        o2 - second object
        Returns:
        the similarity between the two objects specified by their object ids