Détail du package

peirce-criterion

jacobq344MIT1.1.0

Functions for outlier removal using Peirce's criterion

peirce, statistics, outlier

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]