Class QualityMuellerMetric

java.lang.Object
de.uni_trier.wi2.procake.utils.eval.metrics.k.KEvalMetric
de.uni_trier.wi2.procake.utils.eval.metrics.k.QualityMuellerMetric
All Implemented Interfaces:
EvalMetric

public class QualityMuellerMetric extends KEvalMetric
Implementation of the quality metric according to Bergmann and Müller.
Author:
Maximilian Hoffmann
  • Constructor Details

    • QualityMuellerMetric

      public QualityMuellerMetric()
    • QualityMuellerMetric

      public QualityMuellerMetric(int k)
  • Method Details

    • getMetricName

      public String getMetricName()
      Description copied from interface: EvalMetric
      Returns a name for the metric to be identified in any string representations.
      Specified by:
      getMetricName in interface EvalMetric
      Overrides:
      getMetricName in class KEvalMetric
      Returns:
      the name of the metric
    • computeEvalKMetric

      public double computeEvalKMetric(SimpleSimilarityResult groundTruthResult, SimpleSimilarityResult predictedResult, Integer k)
      Description copied from class: KEvalMetric
      Computes a ranking metric for the top-k cases of the ranking results.
      Specified by:
      computeEvalKMetric in class KEvalMetric
      Parameters:
      groundTruthResult - the ground-truth ranking
      predictedResult - the predicted ranking results to analyze
      k - the number of top cases to look at
      Returns:
      a score for the ranking according to this metric