JSPM

poissonsamples

1.0.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • 0
    • Score
      100M100P100Q24887F
    • License MIT

    A small module to get samples from lambda distribution

    Package Exports

    • poissonsamples

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (poissonsamples) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    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.