1.0.1 • Published 5 years ago

poissonsamples v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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.