Class MatcherSimilarityLatexPlotWriter
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_eval.visualization.MatcherSimilarityLatexPlotWriter
This writer can persist
MatcherSimilarity objects in a LaTex graph.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static doubleHelper function which calculates the mean.private static doublemeanAbsoluteDeviation(List<Double> numbers) Helper function to calculate the Mean Absolute Deviation (MAD).static voidwrite(ConfusionMatrixMetric cm, MatcherSimilarity similarityResultInstance, PrintWriter writer) Persists a matcher similarity instance as LaTex graph.static voidwrite(MatcherSimilarity similarityResultInstance, PrintWriter writer) Persists a matcher similarity instance as LaTex graph from the perspective of one particular matcher.
-
Constructor Details
-
MatcherSimilarityLatexPlotWriter
public MatcherSimilarityLatexPlotWriter()
-
-
Method Details
-
write
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
Helper function which calculates the mean.- Parameters:
numbers- Numbers for which the mean shall be calculated.- Returns:
- Mean as double.
-
meanAbsoluteDeviation
Helper function to calculate the Mean Absolute Deviation (MAD).- Parameters:
numbers- The numbers for which the MAD shall be calculated.- Returns:
- MAD as double
-