1.1.0 • Published 4 years ago

peirce-criterion v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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]