Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rodrigosetti/probdist
Probability Distributions in Node JS
https://github.com/rodrigosetti/probdist
distributions probability statistics
Last synced: about 1 month ago
JSON representation
Probability Distributions in Node JS
- Host: GitHub
- URL: https://github.com/rodrigosetti/probdist
- Owner: rodrigosetti
- License: mit
- Created: 2015-07-26T03:45:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-07-06T22:42:35.000Z (over 5 years ago)
- Last Synced: 2024-10-28T15:21:54.650Z (3 months ago)
- Topics: distributions, probability, statistics
- Language: JavaScript
- Homepage:
- Size: 49.8 KB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# probdist
[![Build Status](https://travis-ci.org/rodrigosetti/probdist.svg?branch=master)](https://travis-ci.org/rodrigosetti/probdist) [![Coverage Status](https://coveralls.io/repos/rodrigosetti/probdist/badge.svg?branch=master&service=github)](https://coveralls.io/github/rodrigosetti/probdist?branch=master)
[![NPM](https://nodei.co/npm/probdist.png)](https://npmjs.org/package/probdist)
Probability Distributions implementations in Javascript.
The following distributions are implemented:
* Uniform
* Discrete Uniform
* Bernoulli
* Binomial
* Negative Binomial
* Geometric
* Gaussian
* Cauchy
* Categorical
* Poisson
* Exponential
* Chi-squared
* Beta
* Pareto
* Gamma
* Rayleigh
* Student's T
* Snedecor's FExample of usage:
```javascript
var distributions = require('probdist');
var X = distributions.gaussian(0, 1);X.sample(10);
// [ 0.5658508553376578,
// 0.028141615149934296,
// 0.35359657318758764,
// -0.5021456049431663,
// 0.7315022110154814,
// 0.12995158841761167,
// 0.6366737204564288,
// -0.7940757196582808,
// 0.8273505445946512,
// -2.352834867962656 ]
```