About stdlib...
We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.
The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.
When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.
To join us in bringing numerical computing to the web, get started by checking us out on GitHub, and please consider financially supporting stdlib. We greatly appreciate your continued support!
Poisson
Poisson distribution.
Installation
npm install @stdlib/stats-base-dists-poisson
Usage
var poisson = require( '@stdlib/stats-base-dists-poisson' );
poisson
Poisson distribution.
var dist = poisson;
The namespace contains the following distribution functions:
The namespace contains the following functions for calculating distribution properties:
The namespace contains a constructor function for creating a Poisson distribution object.
var Poisson = require( '@stdlib/stats-base-dists-poisson' ).Poisson;
var dist = new Poisson( 2.0 );
var y = dist.pmf( 3.0 );
y = dist.pmf( 2.3 );
Examples
var poisson = require( '@stdlib/stats-base-dists-poisson' );
var lambda = 3;
console.log( poisson.mean( lambda ) );
console.log( poisson.stdev( lambda ) );
console.log( poisson.variance( lambda ) );
console.log( poisson.pmf( 4, lambda ) );
console.log( poisson.cdf( 2, lambda ) );
console.log( poisson.quantile( 0.8, lambda ) );
console.log( poisson.mgf( 1.0, lambda ) );
Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.

License
See LICENSE.
Copyright
Copyright © 2016-2024. The Stdlib Authors.
0.2.2 (2024-07-28)
<section class="packages">
Packages
</section>
<!-- /.packages -->
<section class="contributors">
Contributors
A total of 2 people contributed to this release. Thank you to the following contributors:
- Nishant Shinde
- Philipp Burckhardt
</section>
<!-- /.contributors -->
<section class="commits">
Commits
<details>
c3ebfa8
- docs: update namespace table of contents and address spelling errors (by Philipp Burckhardt)41d41e9
- test: include trailing newlines in Julia-generated JSON fixtures (by Philipp Burckhardt)9ed7d0e
- chore: add missing trailing newlines (by Philipp Burckhardt)d66f5d6
- docs: improve README examples of stats/base/dists/poisson
namespace (by Nishant Shinde, Philipp Burckhardt)
</details>
</section>
<!-- /.commits -->
</section>
<!-- /.release -->
<section class="release" id="v0.2.1">