std::expone...distribution(3)
π 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
- 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