Class MatcherSimilarityLatexPlotWriter

java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_eval.visualization.MatcherSimilarityLatexPlotWriter

public class MatcherSimilarityLatexPlotWriter extends Object
This writer can persist MatcherSimilarity objects in a LaTex graph.
  • Constructor Details

    • MatcherSimilarityLatexPlotWriter

      public MatcherSimilarityLatexPlotWriter()
  • Method Details

    • write

      public static void write(MatcherSimilarity similarityResultInstance, PrintWriter writer)
      Persists a matcher similarity instance as LaTex graph from the perspective of one particular matcher.
      Parameters:
      similarityResultInstance - Similarity instance that shall be persisted.
      writer - The writer that shall be used to persist the results.
    • write

      public static void write(ConfusionMatrixMetric cm, MatcherSimilarity similarityResultInstance, PrintWriter writer)
      Persists a matcher similarity instance as LaTex graph. Writes two graphs: 1) The x axis is the mean absolute deviation and the y axis is the F measure. 2) The distances between the matchers are transformed into coordinates and plotted.
      Parameters:
      cm - You can use this parameter to use a previously calculated confusion matrix in order to save execution time..
      similarityResultInstance - Similarity instance that shall be persisted.
      writer - The writer that shall be used to persist the results.
    • mean

      private static double mean(List<Double> numbers)
      Helper function which calculates the mean.
      Parameters:
      numbers - Numbers for which the mean shall be calculated.
      Returns:
      Mean as double.
    • meanAbsoluteDeviation

      private static double meanAbsoluteDeviation(List<Double> numbers)
      Helper function to calculate the Mean Absolute Deviation (MAD).
      Parameters:
      numbers - The numbers for which the MAD shall be calculated.
      Returns:
      MAD as double