Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Sep 26, 2021
1 parent af0325e commit 5567e31
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/stats/outliers_logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ const getOutliers = function (quantiles, reversedQuantiles, length) {
return { outliersMin, outliersMax }
}

// Maximum percentage of min|max outliers.
// This is done independently for outliersMax|Min so they do not influence each
// other.
// A higher value:
// - Is more likely to result in very high outlier percentages on some edge
// cases, for example on a distribution with a continuous, very exponential
// slope.
// - Is more likely to include significant data instead of outliers only.
// A lower value reduces the benefits of outliers removal.
const OUTLIERS_LIMIT = 0.05

// We only increment the index by 1, even if the `for` loop used several
Expand Down

0 comments on commit 5567e31

Please sign in to comment.