Class MeasureProcessor
- java.lang.Object
-
- org.aksw.limes.core.measures.measure.MeasureProcessor
-
public class MeasureProcessor extends Object
- Author:
- Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de)
-
-
Constructor Summary
Constructors Constructor Description MeasureProcessor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublegetCosts(String measureExpression, double mappingSize)Returns the approximation of the runtime for a certain expression.static List<String>getMeasures(String expression)Computes a list that contains all measures used in a given expression.static doublegetSimilarity(Instance sourceInstance, Instance targetInstance, String expression, double threshold, String sourceVar, String targetVar)Returns similarity between two instances given a metric expression.
-
-
-
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 instancetargetInstance- , the target instanceexpression- , the metric expressionthreshold- , the thresholdsourceVar- , the source variabletargetVar- , 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 expressionmappingSize- , The size of the mapping returned by the metric expression- Returns:
- Runtime approximation of the measure expression
-
-