Returns a function which itself returns true if a value is an outlier.
This can be used for example to get a copy of an array without outliers:
const p = computeIsOutlier(someData);const someDataWithoutOutliers = someData.filter(value => !p(value)); Copy
const p = computeIsOutlier(someData);const someDataWithoutOutliers = someData.filter(value => !p(value));
Outliers are defined as: "a point which falls more than 1.5 times the interquartile range above the third quartile or below the first quartile." Wolfram
If array length is less than 4, no value will be considered an outlier.
Data to filter
Multiplier of Q3 Q1. Default: 1.5
Returns a function which itself returns true if a value is an outlier.
This can be used for example to get a copy of an array without outliers:
Outliers are defined as: "a point which falls more than 1.5 times the interquartile range above the third quartile or below the first quartile." Wolfram
If array length is less than 4, no value will be considered an outlier.