public static void GetTotalReport(IEnumerable <DetailedEvaluation> evaluations, bool printHits = false, bool printMisses = false, bool printFalseAlarms = false) { int totalEos = 0; int totalMisses = 0; int totalHits = 0; int totalFalseAlarms = 0; foreach (DetailedEvaluation evaluation in evaluations) { totalEos += evaluation.EosCount; totalHits += evaluation.Hit; totalMisses += evaluation.Missed; totalFalseAlarms += evaluation.FalseAlarm; if (printHits) { evaluation.PrintFalseAlarms(); } if (printMisses) { evaluation.PrintMisses(); } if (printFalseAlarms) { evaluation.PrintFalseAlarms(); } } var totalEval = new SimpleEvaluation(totalHits, totalMisses, totalFalseAlarms, totalEos); Console.WriteLine(totalEval); }
public static void GetTotalReport(IEnumerable<DetailedEvaluation> evaluations, bool printHits = false, bool printMisses = false, bool printFalseAlarms = false) { int totalEos = 0; int totalMisses = 0; int totalHits = 0; int totalFalseAlarms = 0; foreach (DetailedEvaluation evaluation in evaluations) { totalEos += evaluation.EosCount; totalHits += evaluation.Hit; totalMisses += evaluation.Missed; totalFalseAlarms += evaluation.FalseAlarm; if (printHits) { evaluation.PrintFalseAlarms(); } if (printMisses) { evaluation.PrintMisses(); } if (printFalseAlarms) { evaluation.PrintFalseAlarms(); } } var totalEval = new SimpleEvaluation(totalHits, totalMisses, totalFalseAlarms, totalEos); Console.WriteLine(totalEval); }
private bool Equals(SimpleEvaluation other) { return Missed == other.Missed && _eosCandidateCount == other._eosCandidateCount && Hit == other.Hit && FalseAlarm == other.FalseAlarm; }
private bool Equals(SimpleEvaluation other) { return(Missed == other.Missed && _eosCandidateCount == other._eosCandidateCount && Hit == other.Hit && FalseAlarm == other.FalseAlarm); }