# normal-distribution

> A small javascript module for working with normal distributions

Latest version **1.1.1** (published 2021-07-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install normal-distribution
pnpm add normal-distribution
yarn add normal-distribution
bun add normal-distribution
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2021-07-02 |
| First published | 2016-03-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 25 |
| Author | richard.beddington@gmail.com |
| Maintainers | richieahb |
| Keywords | javascript, normal, distribution, math, maths, mathematics, probability, statistics |

## Links

- npm: https://www.npmjs.com/package/normal-distribution
- Repository: https://github.com/RichieAHB/normal-distribution
- Homepage: https://github.com/RichieAHB/normal-distribution#readme
- Issues: https://github.com/RichieAHB/normal-distribution/issues
- npm.io page: https://npm.io/package/normal-distribution

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2021-07-02
- 1.1.0 — 2021-07-02
- 1.0.0 — 2021-07-02
- 0.0.9 — 2020-03-20
- 0.0.8 — 2020-03-20
- 0.0.7 — 2018-12-19
- 0.0.6 — 2018-12-19
- 0.0.5 — 2017-12-07
- 0.0.4 — 2016-03-16
- 0.0.3 — 2016-03-09
- 0.0.2 — 2016-03-03
- 0.0.1 — 2016-03-02

## README

# NormalDistribution #
https://github.com/RichieAHB/normal-distribution

A small javascript module for working with normal distributions.

The class can be instantiated like so:
```javascript
const normDist = new NormalDistribution(mean, standardDeviation);
```
With no arguments the distribution will be a standard normal distribution with `mean = 0` and `standardDeviation = 1`.

___

The four main methods that can be called are:
### #pdf(value) ###
Accepts an integer argument and returns the probability denisty at that point in the distribution; useful for drawing the curve.

### #cdf(value) ###
Accepts an integer argument and returns the probability of a random variable being below the one argument passed to the method.

### #probabilityBetween(value1, value2) ###
Accepts two integer arguments and returns the probability of a random variable being between the two arguments passed.

### #zScore(value) ###
Accepts an integer argument and returns the z-score for that value.
___

*Note: the z-table used in this module gives probabilities for up to 3.5 standard deviations from the mean*

---
_Source: https://npm.io/package/normal-distribution · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
