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__bhas 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 aparam_typetemplate<typename _ForwardIterator , typename _UniformRandomNumberGenerator > void __generate (_ForwardIterator __f, _ForwardIterator __t, _UniformRandomNumberGenerator &__urng)β internal generate, iterators from__fto__t, fed by__urngtemplate<typename _ForwardIterator , typename _UniformRandomNumberGenerator > void __generate (_ForwardIterator __f, _ForwardIterator __t, _UniformRandomNumberGenerator &__urng, const param_type &__p)β same deal but you also hand it aparam_typeπ«template<typename _UniformRandomNumberGenerator > void __generate (result_type *__f, result_type *__t, _UniformRandomNumberGenerator &__urng, const param_type &__p)β pointer-flavored version,result_type *__ftoresult_type *__t, plus__urngand__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 oneoperator()was simply not enough for herparam_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 invoid reset ()β resets the distribution state, fresh start era π
π― Friends π―
bool operator== (const weibull_distribution &__d1, const weibull_distribution &__d2)β returntrueif 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
π Friends And Related Symbol Documentation π
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
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms