Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Dec 12, 2021
1 parent af3935c commit 23e7747
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/stats/cold.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,14 @@ const findHotIndex = function (

filteredIndex += 1
sum += value

if (filteredIndex <= minIndex) {
continue
}

incrementalMean = sum / filteredIndex

if (
filteredIndex > minIndex &&
incrementalMean >= incrementalMeanMin &&
incrementalMean <= incrementalMeanMax
) {
Expand Down

0 comments on commit 23e7747

Please sign in to comment.