std::bernou...tion::param(3)

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

✨ NAME ✨

okay bestie, gather round: this is the manual page for std::bernou...tion::param(3) β€” but the actual main character is std::bernoulli_distribution::param, from the C++ Standard Library. It’s giving β€œtiny overloads, big parameter-set energy” πŸ’….

πŸŽ€ Synopsis πŸŽ€

param_type param() const;               (1) (since C++11)
void param( const param_type& params ); (2) (since C++11)

This literally manages the associated distribution parameter set, no cap.

  1. Returns the associated parameter set. ✨
  2. Sets the associated parameter set to params. 🫢

🌸 Parameters 🌸

  • params β€” new contents of the associated parameter set. That’s the whole vibe: fresh parameter-set contents, bestie.

πŸ’– Return value πŸ’–

  1. The associated parameter set. πŸŽ€
  2. (none) β€” literally nothing, and that’s iconic.

⭐ Complexity ⭐

Constant. πŸ• So it’s fast, lowkey no stressful loops, periodt.


cute sign-off: source/version and date are http://cppreference.com, 2024.06.10, and the page is std::bernou...tion::param(3). byeee, go manage those parameter sets πŸ’œπŸŒˆ

πŸ“¦ where this page comes from