Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/little-brother/outlier2
- Owner: little-brother
- License: mit
- Created: 2017-02-12T16:24:26.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-15T09:21:39.000Z (almost 8 years ago)
- Last Synced: 2024-10-13T14:27:16.692Z (2 months ago)
- Topics: outlier-detection, statistics
- Language: JavaScript
- Size: 6.84 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
})
```