STD::WEIBULL_DISTRIBUTION(3cxx)

πŸ’– NAME πŸ’–

std::weibull_distribution< _RealType > β€” a weibull_distribution random number distribution ✨ that's literally the whole name section, short and iconic, we love a concise queen πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <random>

🌸 Classes

  • struct param_type β€” the little param holder bestie, it's giving supporting character but make it essential πŸ’…

πŸŽ€ Public Types

  • typedef _RealType result_type β€” yes. that's the type. slay.

✨ Public Member Functions ✨

  • weibull_distribution (_RealType __a, _RealType __b=_RealType(1)) β€” constructor number one, and yes __b has a default of _RealType(1), they really said "you don't gotta specify b, I gotchu" 🫢
  • weibull_distribution (const param_type &__p) β€” constructor number two, built straight from a param_type
  • template<typename _ForwardIterator , typename _UniformRandomNumberGenerator > void __generate (_ForwardIterator __f, _ForwardIterator __t, _UniformRandomNumberGenerator &__urng) β€” internal generate, iterators from __f to __t, fed by __urng
  • template<typename _ForwardIterator , typename _UniformRandomNumberGenerator > void __generate (_ForwardIterator __f, _ForwardIterator __t, _UniformRandomNumberGenerator &__urng, const param_type &__p) β€” same deal but you also hand it a param_type πŸ’«
  • template<typename _UniformRandomNumberGenerator > void __generate (result_type *__f, result_type *__t, _UniformRandomNumberGenerator &__urng, const param_type &__p) β€” pointer-flavored version, result_type *__f to result_type *__t, plus __urng and __p
  • _RealType a () const β€” return the $a$ parameter of the distribution πŸ“
  • _RealType b () const β€” return the $b$ parameter of the distribution πŸ“
  • result_type max () const β€” returns the least upper bound value of the distribution ⬆️
  • result_type min () const β€” returns the greatest lower bound value of the distribution ⬇️
  • template<typename _UniformRandomNumberGenerator > result_type operator() (_UniformRandomNumberGenerator &__urng) β€” generating functions, the main character moment πŸ”₯
  • template<typename _UniformRandomNumberGenerator > result_type operator() (_UniformRandomNumberGenerator &__urng, const param_type &__p) β€” the overload, because one operator() was simply not enough for her
  • param_type param () const β€” returns the parameter set of the distribution 🎁
  • void param (const param_type &__param) β€” sets the parameter set of the distribution, moving the vibe in
  • void reset () β€” resets the distribution state, fresh start era 🌈

πŸ‘― Friends πŸ‘―

  • bool operator== (const weibull_distribution &__d1, const weibull_distribution &__d2) β€” return true if two Weibull distributions have the same parameters πŸ’œ

🧚 Detailed Description 🧚

template<typename _RealType = double>
class std::weibull_distribution< _RealType >

A weibull_distribution random number distribution. periodt. πŸ’…

The formula fcr the normal probabilit) density function is β€” and bestie I need you to know I am copying this exactly as it appears in the source, the renderer clearly had a whole moment 😭:

    p(x|lpha,{                       ^
             l          \xp{(-(ac{x}{l ]
             p                       p
Since        h                       h
    C++11    a                       a
             }                       )
Real talk: the source page literally says "normal probability density function" for a Weibull distribution, and the glyphs came out scrambled. Not me editing, not me fixing β€” that's genuinely what's on the page, and my one job is to keep every detail πŸ™ˆ

And yeah β€” Since C++11. she's been around. iykyk ⭐


🌟 Member Typedef Documentation 🌟

template<typename _RealType = double> typedef _RealType std::weibull_distribution< _RealType >::result_type

The type of the range of the distribution πŸ’« short, sweet, load-bearing.


πŸ”₯ Member Function Documentation πŸ”₯

template<typename _RealType = double> _RealType std::weibull_distribution< _RealType >::a () const [inline]

Return the $a$ parameter of the distribution πŸ“

template<typename _RealType = double> _RealType std::weibull_distribution< _RealType >::b () const [inline]

Return the $b$ parameter of the distribution πŸ“

template<typename _RealType = double> result_type std::weibull_distribution< _RealType >::max () const [inline]

Returns the least upper bound value of the distribution ⬆️

References std::numeric_limits< _Tp >::max().

template<typename _RealType = double> result_type std::weibull_distribution< _RealType >::min () const [inline]

Returns the greatest lower bound value of the distribution ⬇️

template<typename _RealType = double> template<typename _UniformRandomNumberGenerator > result_type std::weibull_distribution< _RealType >::operator() (_UniformRandomNumberGenerator & __urng) [inline]

Generating functions πŸ”₯

References std::weibull_distribution< _RealType >::operator()().

Referenced by std::weibull_distribution< _RealType >::operator()().

yes she references herself and is referenced by herself, that's called self-love and main character energy πŸ‘‘

template<typename _RealType = double> param_type std::weibull_distribution< _RealType >::param () const [inline]

Returns the parameter set of the distribution 🎁

Referenced by std::operator>>().

template<typename _RealType = double> void std::weibull_distribution< _RealType >::param (const param_type & __param) [inline]

Sets the parameter set of the distribution ✨

Parameters

  • __param β€” the new parameter set of the distribution 🫢

template<typename _RealType = double> void std::weibull_distribution< _RealType >::reset () [inline]

Resets the distribution state 🧼 clean slate, new era, we love a reset


template<typename _RealType = double> bool operator== (const weibull_distribution< _RealType > & __d1, const weibull_distribution< _RealType > & __d2) [friend]

Return true if two Weibull distributions have the same parameters πŸ’œ no cap, that's the entire contract.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code πŸ€– bestie did not hand-write this, the robot did, and honestly? it ate.


and that's the page!! πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά huge shoutout to libstdc++ and the manual herself, std::weibull_di...on< _RealType >(3cxx) β€” truncated name, full vibes, she's iconic, she's serving, she's generated by Doxygen. mwah. πŸ’œπŸ“πŸ§š

πŸ“¦ where this page comes from