You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing your package pre deployment... found error:
var stats = require("stats-analysis");
var myArray = [5000,4900,1000,3000,4400,1200300,5000,5500,126500];
var indexsToRemove = stats.indexOfOutliers(myArray);
console.log(indexsToRemove);
This logs: [5,6,8]
Now 5 and 8, totally agree, but why would 6 be removed?
The text was updated successfully, but these errors were encountered:
Oh right!!
The default outlier method uses medianDifferencing so a number is considered an outlier if the difference is higher than the median.
You'll want to use the other outlier method MAD that doesnt care about order. stats.indexOfOutliers(arr, stats.outlierMethod.MAD)
I just pushed a new version so you'll have to npm install again.
Thanks for reporting this! 😄
Testing your package pre deployment... found error:
This logs:
[5,6,8]
Now 5 and 8, totally agree, but why would 6 be removed?
The text was updated successfully, but these errors were encountered: