Interface SimilarityValuator

    • Method Detail

      • computeSimilarity

        Similarity computeSimilarity​(DataObject query,
                                     DataObject object)
        Computes the similarity between a query and a case.
        Parameters:
        query - The query DataObject.
        object - The case DataObject.
        Returns:
        the similarity value, if no applicable similarity measure exists, an invalid Similarity will be returned.
      • computeSimilarity

        Similarity computeSimilarity​(DataObject queryObject,
                                     DataObject caseObject,
                                     DataClass commonClass)
        Computes the similarity between a query and a case for the given common data class.
        Parameters:
        queryObject - The query DataObject.
        caseObject - The case DataObject.
        commonClass - The common parent DataClass that should be used.
        Returns:
        the similarity value, if no applicable similarity measure exists, an invalid Similarity will be returned.
      • computeSimilarity

        Similarity computeSimilarity​(DataObject queryObject,
                                     DataObject caseObject,
                                     String similarityMeasure)
        Computes the similarity between a queryObject and a caseObject based on the similarityMeasure
        Parameters:
        queryObject -
        caseObject -
        similarityMeasure - if null, computeSimilarity(DataObject, DataObject) is used, else the similarity with the given name is used.
        Returns:
        the similarity value, if no similarity measure with that name exists, an invalid Similarity will be returned.
      • getSimilarityMeasure

        SimilarityMeasure getSimilarityMeasure​(DataObject query,
                                               DataObject object)
        Returns the appropriate similarity measure for the common parent class of both given data objects.
        Parameters:
        query - the query object
        object - the case object
        Returns:
        the similarity measure for the common data class