poissonsamples
v1.0.1
Published
A small module to get samples from lambda distribution
Downloads
3
Maintainers
Readme
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.