std::chi_sq...::operator()(3)
πΈ NAME πΈ
okay so this is the <pink>std::chi_sq...::operator()</pink> page from the <purple>C++ Standard Libary</purple> manual β yes bestie, that spelling is right there, iconic. The actual name is std::chi_squared_distribution::operator() β std::chi_squared_distribution::operator() (fr fr, that's the whole name situation).
β¨ Synopsis β¨
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 version (1) generates random numbers that are distributed according to the associated probability function, and the entropy is acquired by calling g.operator(). Version (2) does the same random-number generation thing, but it uses params instead.
The first version uses the associated parameter set, the second version uses params. And the associated parameter set is not modified β periodt, leave it alone π
.
π Parameters π
gβ a uniform random bit generator object. lowkey essential.paramsβ distribution parameter set to use instead of the associated one. highkey specific.
π¦ Type requirements π¦
Generatormust meet the requirements ofUniformRandomBitGenerator. no cap, that's the requirement.
π Return value π
The generated random number. That's it, that's the serve β¨.
π§ Complexity π§
Amortized constant number of invocations of g.operator(). so it's not doing a whole saga every time, bestie.
xoxo π
sourced from http://cppreference.com, version 2024.06.10, dated 2024.06.10 β bye bestie π«Ά
π¦ 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