java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_eval.evaluator.significance.McNemarIndividualResult

class McNemarIndividualResult extends Object
Local data structure. To be used for testing.
  • Field Details

    • matcherName1

      public String matcherName1
    • matcherName2

      public String matcherName2
    • testCaseName

      public String testCaseName
    • trackName

      public String trackName
    • alpha

      public double alpha
  • Constructor Details

    • McNemarIndividualResult

      public McNemarIndividualResult(String matcherName1, String matcherName2, String testCaseName, String trackName, double alpha)
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTrackResult

      public McNemarTrackResult getTrackResult()
    • getCrossTrackResult

      public McNemarCrossTrackResult getCrossTrackResult()
    • getDistinctTracks

      public static Set<String> getDistinctTracks(Map<McNemarIndividualResult,Double> pValues)
      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

      public 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).
      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.