Interface PrimitiveSimilarity<O>

    • Method Detail

      • similarity

        double similarity​(O o1,
                          O o2)
        Computes the similarity between two given DatabaseObjects according to this similarity function.
        Parameters:
        o1 - first DatabaseObject
        o2 - second DatabaseObject
        Returns:
        the similarity between two given DatabaseObjects according to this similarity function
      • instantiate

        default <T extends OSimilarityQuery<T> instantiate​(Relation<T> relation)
        Description copied from interface: Similarity
        Instantiate with a representation to get the actual similarity query.
        Specified by:
        instantiate in interface Similarity<O>
        Parameters:
        relation - Representation to use
        Returns:
        Actual distance query.