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

https://github.com/dy/normal-pdf

Get gaussian density at a point
https://github.com/dy/normal-pdf

Last synced: about 1 year ago
JSON representation

Get gaussian density at a point

Awesome Lists containing this project

README

          

Normal distribution pdf

# normal-pdf

Get normal distribution density value at a point.

## Usage

[![npm install normal-pdf](https://nodei.co/npm/normal-pdf.png?mini=true)](https://npmjs.org/package/normal-pdf/)

### `normal(x, μ = 0, σ² = 1)`

Returns `density` value for the `x` with gaussian parameters _mean_ `μ` and _variance_ `σ²`.
If parameters are omitted, it will use standard zero mean and unit variance.

## License

MIT.