예제 #1
0
파일: TestRun.cs 프로젝트: teokk1/tIAT
        public void calculate(List <Guess> originalList, RunLists lists)
        {
            all.calculate(originalList);

            correct.calculate(lists.correct);
            incorrect.calculate(lists.incorrect);

            positiveAll.calculate(lists.positive);
            negativeAll.calculate(lists.negative);

            positiveCorrect.calculate(lists.positiveCorrect);
            negativeCorrect.calculate(lists.negativeCorrect);

            positiveIncorrect.calculate(lists.positiveIncorrect);
            negativeIncorrect.calculate(lists.negativeIncorrect);
        }
예제 #2
0
파일: TestRun.cs 프로젝트: teokk1/tIAT
        void calculate_adjusted()
        {
            adjustedGuesses = guesses.Select(g => g.Clone()).ToList();

            RunLists adjustedLists = new RunLists();

            adjustedLists.fill(adjustedGuesses);

            foreach (var guess in adjustedGuesses)
            {
                if (guess.correct == false)
                {
                    guess.duration = penalties.penaltyAmount;
                }
            }

            statsAdjusted.calculate(adjustedGuesses, adjustedLists);
        }