std::studen...::operator()(3)
okay so this is the std::studen...::operator()(3) page from the C++ Standard Libary π
(their spelling, not mine π). It's all about std::student_t_distribution::operator(), and yes bestie, we're gonna keep every overload exactly as written.
π NAME π
std::student_t_distribution::operator()β yep, the full name isstd::student_t_distribution::operator(), and that's the whole NAME moment, periodt β¨.
β¨ 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 );
kk so overload (1) and overload (2) both exist since C++11. They 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.
π«Ά important vibe check: 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β no cap, this is required π¦
πΈ Return value πΈ
- The generated random number. That's the gift, bestie π
π Complexity π
- Amortized constant number of invocations of
g.operator()β iconic, lowkey efficient π
mwah π source/version/date check: this page came from http://cppreference.com, version/date 2024.06.10, and it's the std::studen...::operator()(3) page. catch you later, 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