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)
- Host: GitHub
- URL: https://github.com/msn0/stats-mad
- Owner: msn0
- Created: 2017-06-06T08:18:49.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-16T08:10:44.000Z (almost 9 years ago)
- Last Synced: 2025-08-29T06:18:11.312Z (7 months ago)
- Topics: deviation, median, robust, statistics
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# median absolute deviation (MAD) [](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)