mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-12 23:20:25 +08:00
made sure to use raw data when calculating consistency
This commit is contained in:
parent
fd1af13364
commit
f356dd5dd0
1 changed files with 6 additions and 4 deletions
|
@ -1375,12 +1375,14 @@ function showResult(difficultyFailed = false) {
|
|||
|
||||
wpmOverTimeChart.data.labels = labels;
|
||||
|
||||
let rawWpmPerSecond = keypressPerSecond.map((f) => Math.round((f / 5) * 60));
|
||||
let rawWpmPerSecondRaw = keypressPerSecond.map((f) =>
|
||||
Math.round((f / 5) * 60)
|
||||
);
|
||||
|
||||
rawWpmPerSecond = smooth(rawWpmPerSecond, 1);
|
||||
let rawWpmPerSecond = smooth(rawWpmPerSecondRaw, 1);
|
||||
|
||||
let stddev = stdDev(rawWpmPerSecond);
|
||||
let avg = mean(rawWpmPerSecond);
|
||||
let stddev = stdDev(rawWpmPerSecondRaw);
|
||||
let avg = mean(rawWpmPerSecondRaw);
|
||||
|
||||
function kogasa(cov) {
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue