std::chi_sq...::operator()(3)

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

🌸 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 πŸ¦‹

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