std::gamma_...::operator()(3)
π NAME π
Okay bestie, welcome to the std::gamma_...::operator()(3) page from the C++ Standard Libary manual β yes, thatβs βLibary,β weβre keeping it exactly as the header says πβ¨
The name is std::gamma_distribution::operator() β and the one-liner is literally the same thing again: std::gamma_distribution::operator() π
β¨ Synopsis β¨
Two overloads, both (since C++11), both templated on class Generator:
template< class Generator > (1)
(since C++11)
result_type operator()( Generator& g );
template< class Generator > (2)
(since C++11)
result_type operator()( Generator& g, const param_type& params );
So hereβs the vibe: these generate random numbers that are distributed according to the associated probability function. The entropy is acquired by calling g.operator() π²β¨
The first version uses the associated parameter set. The second version uses params. And super important, no cap: the associated parameter set is not modified π
ββοΈ
π Parameters π
gβ a uniform random bit generator object π°paramsβ distribution parameter set to use instead of the associated one π§
π¦ Type requirements π¦
Generatormust meet the requirements ofUniformRandomBitGeneratorβ
π Return value π
- The generated random number π
β Complexity β
- Amortized constant number of invocations of
g.operator()β‘
Source: http://cppreference.com β’ version/date: 2024.06.10 β’ page: std::gamma_...::operator()(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