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

https://github.com/msn0/stats-mad

Calculate Median Absolute Deviation (MAD)
https://github.com/msn0/stats-mad

deviation median robust statistics

Last synced: 7 months ago
JSON representation

Calculate Median Absolute Deviation (MAD)

Awesome Lists containing this project

README

          

# median absolute deviation (MAD) [![Build Status](https://travis-ci.org/msn0/stats-mad.svg?branch=master)](http://travis-ci.org/msn0/stats-mad)

> Calculate median absolute deviation [MAD](https://en.wikipedia.org/wiki/Median_absolute_deviation)

## Installation

```sh
→ npm i --save stats-mad
```

## Example

```js
const mad = require('stats-mad');

mad([1, 1, 2, 2, 4, 6, 9]); // → 1
```

## More info

See [Media Absolute Deviation](https://en.wikipedia.org/wiki/Median_absolute_deviation)

## License

MIT © [Michał Jezierski](https://github.com/msn0)