Class 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 Detail

      • Utils

        public Utils()
    • Method Detail

      • getPrecision

        public static double getPrecision​(AMapping reference,
                                          AMapping computed)
      • getRecall

        public static double getRecall​(AMapping reference,
                                       AMapping computed)
        Computes the recall of the mapping computed with respect to the mapping reference.
        Parameters:
        reference - Mapping
        computed - 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 - Mapping
        computed - Mapping
        Returns:
        Precision, Recall and F-Score. The entries for the Hashmap are "precision", "recall" and "fscore".
      • getStandardDeviation

        public static double getStandardDeviation​(List<Double> data)
      • getMean

        public static double getMean​(List<Double> data)