Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

binomial-sampling

Lewuathe30.0.5

Sampling algorithm from binomial distribution

readme

binomial-sampling Build Status

Sampling algorithm from binomial distribution

Getting started

Install

$ npm install binomial-sampling

How to use

var binomial = require('binomial-sampling');

// binomial(n, p) 
// n is the size of sample
// p is the probability of each test
console.log(binomial(10, 0.1));

// --> return the value according to binomial distribution

LICENSE

MIT License. Please see the LICENSE file for details.