boristane / boristane/stat-methods.js
Add support for interquartile range
Open
enhancement
good first issue
help wanted
- Dominant language
- JavaScript
- Stars
- 6
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
Add support for interquartile range as defined [here](https://en.wikipedia.org/wiki/Interquartile_range).
One should be able to provide the quartiles if already computed and avoid re-calculating them.
```js
iqr([7, 31, 7, 31, 47, 75, 87, 115, 116, 119, 119, 155, 177]); // -> 88
iqr([7, 31, 7, 31, 47, 75, 87, 115, 116, 119, 119, 155, 177], [31, 87, 119]); // -> 88
```
**Update README.md** under _Averages and measures of central location_ and the table of contents.
Contributor guide
Assessment
This issue has not been assessed yet.