示例#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);
        }