boristane / boristane/stat-methods.js

Add support for interquartile range

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.