STD::NEGATIVE_BINOMIAL_DISTRIBUTION_PARAM_TYPE(3cxx)

πŸ’– std::negative_binomial_distribution< _IntType >::param_type πŸ’–

Okay bestie, welcome to the 3cxx manual page for this nested param_type struct. It's giving very niche C++ random-library realness, and we're gonna get through it together. 🫢

🌸 NAME 🌸

std::negative_binomial_distribution< _IntType >::param_type β€” that's the whole name, and yes, it's a mouthful. Slay.

✨ SYNOPSIS ✨

#include <random>

🫢 Public Types 🫢

  • typedef negative_binomial_distribution< _IntType > distribution_type β€” the distribution type this parameter type is associated with.

πŸ’… Public Member Functions πŸ’…

  • param_type (_IntType __k, double __p=0.5) β€” constructs a param_type with __k and __p; __p has a default of 0.5.
  • _IntType k () const β€” returns the k value.
  • double p () const β€” returns the p value.

πŸŽ€ Friends πŸŽ€

  • bool operator== (const param_type &__p1, const param_type &__p2) β€” compares two param_type objects for equality.

πŸ¦‹ Detailed Description πŸ¦‹

The template and struct situation is exactly this:

   template<typename _IntType = int>
       struct std::negative_binomial_distribution< _IntType
       >::param_type"Parameter type.

Lowkey iconic formatting, ngl. The description it gives is Parameter type. β€” and that "Parameter type. bit is literally glued onto the end in the original. Keep it cute, keep it exact. πŸ’…

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code.


Cute sign-off time: footer energy is libstd and 3cxx β€” aka the libstdc++ manual, section 3cxx β€” and no date is listed, bestie. Stay random. πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from