Package Exports
- probability-distributions
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (probability-distributions) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Probability Distributions Library for JavaScript
Functions for sampling random variables from probability distributions. Uses the same function names as R.
Installation
npm install --save probability-distributions
var PD = require("probability-distributions");
For documentation and examples, visit: http://statisticsblog.com/probability-distributions/
Currently supported
Binomial distribution
Beta distribution
Cauchy distribution
Chi-Squared distribution
Exponential distribution
Gamma distribution
Laplace distribution
Negative Binomial distribution
Normal (Gaussian) distribution
Poisson distribution (not recommended for lambda > 100)
Sample (shuffle an array, or select items using optional array of weights)
Uniform distribution (with entropy option for standard uniform)
Warning
This package contains additional distributions marked as "experimental". Use these with extreme caution.
License
MIT