std::gamma_...distribution(3)
π NAME π
Okay bestie, you found the std::gamma_...distribution(3) page from the C++ Standard Libary, and the manual name is literally std::gamma_...distribution(3). The main character is std::gamma_distribution::gamma_distribution - std::gamma_distribution::gamma_distribution. No cap, that's the name section. π
β¨ Synopsis β¨
Here's the constructor lineup, copied with all its little labels and (since C++11) moments:
gamma_distribution() : gamma_distribution(1.0) {}
(1) (since C++11)
explicit gamma_distribution( RealType alpha, RealType beta = 1.0
(2) (since C++11)
);
explicit gamma_distribution( const param_type& params );
(3) (since C++11)
Constructs a new distribution object. That's the whole assignment. π
- 1) The constructor labeled
(1)is the no-argument one in the synopsis above, and it's marked(since C++11). - 2) Uses
alphaandbetaas the distribution parameters. - 3) Uses
paramsas the distribution parameters.
π¦ Parameters π¦
alphaβ the Ξ± distribution parameter (shape). She's the shape bestie. πΈbetaβ the Ξ² distribution parameter (scale). That's the scale one. πparamsβ the distribution parameter set. The whole little bundle. π«Ά
π Defect reports π
The following behavior-changing defect reports were applied retroactively to previously published C++ standards. Yes, retroactively β the plot twist energy is real. π
- DR:
P0935R0- Applied to: C++11
- Behavior as published: default constructor was
explicit - Correct behavior: made implicit
Mwah π source: http://cppreference.com; version/date: 2024.06.10; manual page: std::gamma_...distribution(3). Slay and hydrate. π
π¦ 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