Class McNemarIndividualResult
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_eval.evaluator.significance.McNemarIndividualResult
Local data structure.
To be used for testing.
-
Field Summary
Modifier and TypeFieldDescriptiondouble
-
Constructor Summary
ConstructorDescriptionMcNemarIndividualResult
(String matcherName1, String matcherName2, String testCaseName, String trackName, double alpha) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getDistinctTracks
(Map<McNemarIndividualResult, Double> pValues) Given a map from McNemarIndividualResult to Double (=pvalue), this method extracts the tracks.static Map<McNemarIndividualResult,
Double> getEntriesForTrack
(Map<McNemarIndividualResult, Double> pValues, String track) Given a map from McNemarIndividualResult to Double (=pvalue) and a track, a sub-map is created with the entries that are from that particular track.static int
getNumberOfTestCases
(Map<McNemarIndividualResult, Double> pValues) Given a map of p values, determine the absolute number of test cases (as identified by their name).toString()
-
Field Details
-
matcherName1
-
matcherName2
-
testCaseName
-
trackName
-
alpha
public double alpha
-
-
Constructor Details
-
McNemarIndividualResult
-
-
Method Details
-
equals
-
toString
-
getTrackResult
-
getCrossTrackResult
-
getDistinctTracks
Given a map from McNemarIndividualResult to Double (=pvalue), this method extracts the tracks.- Parameters:
pValues
- The p values (map).- Returns:
- Track names as String in set.
-
getNumberOfTestCases
Given a map of p values, determine the absolute number of test cases (as identified by their name).- Parameters:
pValues
- Map of p values.- Returns:
- Integer stating the number of test cases.
-
getEntriesForTrack
public static Map<McNemarIndividualResult,Double> getEntriesForTrack(Map<McNemarIndividualResult, Double> pValues, String track) Given a map from McNemarIndividualResult to Double (=pvalue) and a track, a sub-map is created with the entries that are from that particular track.- Parameters:
pValues
- The p values (map).track
- Track as String.- Returns:
- Sub-Map.
-