Class MeasureProcessor


  • public class MeasureProcessor
    extends Object
    Author:
    Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de)
    • Constructor Detail

      • MeasureProcessor

        public MeasureProcessor()
    • Method Detail

      • getMeasures

        public static List<String> getMeasures​(String expression)
        Computes a list that contains all measures used in a given expression.
        Parameters:
        expression - , The input metric expression
        Returns:
        List of all measures included in the input expression
      • getSimilarity

        public static double getSimilarity​(Instance sourceInstance,
                                           Instance targetInstance,
                                           String expression,
                                           double threshold,
                                           String sourceVar,
                                           String targetVar)
        Returns similarity between two instances given a metric expression.
        Parameters:
        sourceInstance - , the source instance
        targetInstance - , the target instance
        expression - , the metric expression
        threshold - , the threshold
        sourceVar - , the source variable
        targetVar - , the target variable
        Returns:
        the similarity of sourceInstance and targetInstance
      • getCosts

        public static double getCosts​(String measureExpression,
                                      double mappingSize)
        Returns the approximation of the runtime for a certain expression.
        Parameters:
        measureExpression - , The input metric expression
        mappingSize - , The size of the mapping returned by the metric expression
        Returns:
        Runtime approximation of the measure expression