std::expone...distribution(3)

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

πŸ’– NAME πŸ’–

okay so this page is std::expone...distribution(3) from the C++ Standard Libary manual β€” yes, that's literally how the header spells it, bestie 😭 β€” and the thing it's naming is std::exponential_distribution::exponential_distribution, the constructor. The NAME line is extra and repeats it like this: std::exponential_distribution::exponential_distribution - std::exponential_distribution::exponential_distribution. slay.

✨ Synopsis ✨

          exponential_distribution() : exponential_distribution(1.0) {}  (1)
       (since C++11)
          explicit exponential_distribution( RealType lambda );          (2)
       (since C++11)
          explicit exponential_distribution( const param_type& params ); (3)
       (since C++11)

Constructs a new distribution object. 2) Uses lambda as the distribution parameter. 3) Uses params as the distribution parameter.

🌸 Parameters 🌸

  • lambda β€” the Ξ» distribution parameter (the rate parameter)
  • params β€” the distribution parameter set

πŸŽ€ Notes πŸŽ€

⚠️ Requires that 0 < lambda.

🩷 Defect reports 🩷

The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

  • DR: P0935R0
  • Applied to: C++11
  • Behavior as published: default constructor was explicit
  • Correct behavior: made implicit

xoxo, source: http://cppreference.com; version/date: 2024.06.10; page: std::expone...distribution(3) πŸ’…πŸ«Ά

πŸ“¦ where this page comes from