Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 private bool Equals(SimpleEvaluation other)
 {
     return Missed == other.Missed && _eosCandidateCount == other._eosCandidateCount && Hit == other.Hit &&
            FalseAlarm == other.FalseAlarm;
 }
Exemplo n.º 4
0
 private bool Equals(SimpleEvaluation other)
 {
     return(Missed == other.Missed && _eosCandidateCount == other._eosCandidateCount && Hit == other.Hit &&
            FalseAlarm == other.FalseAlarm);
 }