peirce-criterion

1.1.0 • Public • Published

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]

/peirce-criterion/

    Package Sidebar

    Install

    npm i peirce-criterion

    Weekly Downloads

    17

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    17.6 kB

    Total Files

    7

    Last publish

    Collaborators

    • jacobq