Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/little-brother/outlier2

Find outliers in dataset
https://github.com/little-brother/outlier2

outlier-detection statistics

Last synced: about 1 month ago
JSON representation

Find outliers in dataset

Awesome Lists containing this project

README

        

# Outlier2

Compilation of other packages to find outliers in dataset.

Supported criteria/test
* 3 sigma
* Grubbs
* Interquartile range
* Iglewicz and Hoaglin method (MAD)
* Median Differencing
* Any external e.g. `R`-script (see `test.js` for more details)

## Install

```
npm i outlier2
```

## Usage

```
var outlier = require('outlier2');

var arr = [-2, 1, 2, 2, 3, 4, 15];
// Sync
outlier.mad(arr) // Return outlier values [15]
outlier.mad(arr, {indexes: true}) // Return outlier indexes [6]

// Async
outlier.mad(arr, {indexes: true}, function (err, outliers) {
console.log((err) ? err : outliers);
})
```