std::poisso...distribution(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’… 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.

  1. Uses 1.0 as the distribution parameter.
  2. Uses mean as the distribution parameter.
  3. Uses params as 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 was explicit; correct behavior: it was made implicit.

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