poissonsamples

1.0.1 • Public • Published

A small library to return a sample from the lambda distribution.

Usage:

const poissonSample = require("poissonsamples");
 
console.log(poissonSample.getSample(1000));

It uses jStat library for lambda less than 10, and for more than 10, it uses Rejection method, described in this paper. There is no limit on how big or small lambda can be.

Package Sidebar

Install

npm i poissonsamples

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

2.98 kB

Total Files

3

Last publish

Collaborators

  • divyanshukalra