std::poisso...distribution(3)
π std::poisson_distribution::poisson_distribution π
okay so bestie, welcome to the std::poisso...distribution(3) page from the C++ Standard Libary manual. This is constructor business, and weβre gonna keep every crumb.
πΈ NAME πΈ
The NAME here is std::poisson_distribution::poisson_distribution β and yes, itβs literally naming std::poisson_distribution::poisson_distribution itself. Same string twice, iconic, no notes. This page is about constructing the distribution object.
β¨ Synopsis β¨
poisson_distribution() : poisson_distribution(1.0) {} (1) (since C++11)
explicit poisson_distribution( double mean ); (2) (since C++11)
explicit poisson_distribution( const param_type& params ); (3) (since C++11)
Constructs a new distribution object. Thatβs the whole vibe.
- Uses
1.0as the distribution parameter. - Uses
meanas the distribution parameter. - Uses
paramsas the distribution parameter.
π§ Parameters π§
meanβ the ΞΌ distribution parameter (the mean of the distribution).paramsβ the distribution parameter set.
π Notes π
Thereβs a requirement, and itβs not optional: 0 < mean. Like, fr fr, that has to hold.
π©Ή Defect reports π©Ή
The following behavior-changing defect reports were applied retroactively to previously published C++ standards:
P0935R0β applied to C++11 β behavior as published: the default constructor wasexplicit; correct behavior: it was madeimplicit.
mwah π sign-off time: this page is from http://cppreference.com, with the version/date 2024.06.10, and itβs the std::poisso...distribution(3) page. Bye bestie π«Ά
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms