Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Sep 19, 2021
1 parent 558c1cb commit af77e59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stats/outliers_logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const getOutliersPercentage = function (quantiles, minIndex, length) {
// eslint-disable-next-line fp/no-mutation
maxIndex = newMaxIndex
// eslint-disable-next-line fp/no-mutation
newMaxIndex = findMaxIndex(quantiles, minIndex, maxIndex)
newMaxIndex = findMaxIndex(quantiles, maxIndex, minIndex)
} while (newMaxIndex !== undefined)

// console.log(`Final: ${maxIndex} ${maxIndex / length}`)
Expand All @@ -75,7 +75,7 @@ const getOutliersPercentage = function (quantiles, minIndex, length) {
}

// eslint-disable-next-line max-statements, complexity
const findMaxIndex = function (quantiles, minIndex, maxIndex) {
const findMaxIndex = function (quantiles, maxIndex, minIndex) {
const max = quantiles[maxIndex]
const min = quantiles[minIndex]
// console.log(max, min)
Expand Down

0 comments on commit af77e59

Please sign in to comment.