# peirce-criterion

> Functions for outlier removal using Peirce's criterion

Latest version **1.1.0** (published 2020-03-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install peirce-criterion
pnpm add peirce-criterion
yarn add peirce-criterion
bun add peirce-criterion
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-03-16 |
| First published | 2020-03-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 17.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jacob Quant |
| Maintainers | jacobq |
| Keywords | peirce, statistics, outlier |

## Links

- npm: https://www.npmjs.com/package/peirce-criterion
- Repository: https://github.com/jacobq/peirce-criterion
- Homepage: https://github.com/jacobq/peirce-criterion#readme
- Issues: https://github.com/jacobq/peirce-criterion/issues
- npm.io page: https://npm.io/package/peirce-criterion

## Dependencies (1)

- [math-erfc](https://npm.io/package/math-erfc.md) ^1.0.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2020-03-16
- 1.0.1 — 2020-03-10
- 1.0.0 — 2020-03-10

## README

# peirce-criterion

## Introduction

For starters, this ports the Python implementation found on
[the Wikipedia article](https://en.wikipedia.org/wiki/Peirce%27s_criterion).
Additionally, this package provides a function called `remove_outliers`
that uses Peirce's method (as [described here][method]) to remove outliers
from an array of numbers.

## Usage

```js
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]
```


[method]: (https://classes.engineering.wustl.edu/2009/fall/che473/handouts/OutlierRejection.pdf)

---
_Source: https://npm.io/package/peirce-criterion · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
