peirce-criterion
v1.1.0
Published
Functions for outlier removal using Peirce's criterion
Downloads
100
Readme
peirce-criterion
Introduction
For starters, this ports the Python implementation found on
the Wikipedia article.
Additionally, this package provides a function called remove_outliers
that uses Peirce's method (as described here) to remove outliers
from an array of numbers.
Usage
const { remove_outliers } = require('peirce-criterion');
const raw_data = [1, 2, 3, 99];
const trimmed_data = remove_outliers(raw_data);
console.log(trimmed_data); // [1, 2, 3]