std::studen...::operator()(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

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 is std::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 πŸ¦‹

  • Generator must meet the requirements of UniformRandomBitGenerator β€” 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