Package org.aksw.limes.core.util
Class Utils
- java.lang.Object
-
- org.aksw.limes.core.util.Utils
-
public class Utils extends Object
Computes the precision of the mapping computed with respect to the mapping reference.- Version:
- Jul 18, 2016
- Author:
- Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de), Mohamed Sherif (sherif@informatik.uni-leipzig.de)
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublegetFscore(AMapping reference, AMapping computed)Computes the recall of the mapping computed with respect to the mapping reference.static doublegetMean(List<Double> data)static doublegetPrecision(AMapping reference, AMapping computed)static HashMap<String,Double>getPRF(AMapping reference, AMapping computed)Computes all stats (i.e.static doublegetRecall(AMapping reference, AMapping computed)Computes the recall of the mapping computed with respect to the mapping reference.static doublegetStandardDeviation(List<Double> data)
-
-
-
Method Detail
-
getRecall
public static double getRecall(AMapping reference, AMapping computed)
Computes the recall of the mapping computed with respect to the mapping reference.- Parameters:
reference- Mappingcomputed- Mapping- Returns:
- Recall
-
getFscore
public static double getFscore(AMapping reference, AMapping computed)
Computes the recall of the mapping computed with respect to the mapping reference.- Parameters:
reference-computed-- Returns:
- Recall
-
getPRF
public static HashMap<String,Double> getPRF(AMapping reference, AMapping computed)
Computes all stats (i.e. precision, recall, f-score) of the mapping computed with respect to the mapping reference.- Parameters:
reference- Mappingcomputed- Mapping- Returns:
- Precision, Recall and F-Score. The entries for the Hashmap are "precision", "recall" and "fscore".
-
-