Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

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.

Install

npm i poissonsamples

DownloadsWeekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

2.98 kB

Total Files

3

Last publish

Collaborators

  • avatar