STD::WEIBULL_DISTRIBUTION(3)

πŸ’– NAME πŸ’–

okay so bestie, welcome to the Library Functions Manual ✨ this is the page for std::weibull_distribution< _RealType >, and it is, and I quote, "A weibull_distribution random number distribution." that's it. that's the whole name section. short, sweet, iconic. πŸ’…


✨ SYNOPSIS ✨

#include <random>

πŸŽ€ Classes

  • struct param_type β€” a lil nested struct, living inside the distribution, doing its parameter thing. 🫢

πŸ¦‹ Public Types

  • typedef _RealType result_type β€” this is what falls out of the distribution.

🌸 Public Member Functions

  • weibull_distribution (_RealType __a, _RealType __b=_RealType(1)) β€” the constructor, take a peek at __a and __b. note that __b already has a default of _RealType(1), she comes pre-loved. πŸ’–
  • weibull_distribution (const param_type &__p) β€” the other constructor, built from a param_type.
  • template<typename _ForwardIterator, typename _UniformRandomNumberGenerator> void __generate (_ForwardIterator __f, _ForwardIterator __t, _UniformRandomNumberGenerator &__urng)
  • template<typename _ForwardIterator, typename _UniformRandomNumberGenerator> void __generate (_ForwardIterator __f, _ForwardIterator __t, _UniformRandomNumberGenerator &__urng, const param_type &__p)
  • template<typename _UniformRandomNumberGenerator> void __generate (result_type *__f, result_type *__t, _UniformRandomNumberGenerator &__urng, const param_type &__p) β€” yes there are three of these. a whole __generate trio. not me counting them, there's genuinely three. 😭
  • _RealType a () const β€” hands you back the $a$ parameter of the distribution.
  • _RealType b () const β€” hands you back 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. πŸ‘‘
  • template<typename _UniformRandomNumberGenerator> result_type operator() (_UniformRandomNumberGenerator &__urng, const param_type &__p)
  • param_type param () const β€” returns the parameter set of the distribution.
  • void param (const param_type &__param) β€” sets the parameter set of the distribution.
  • void reset () β€” resets the distribution state. a lil factory reset, but for vibes.

πŸ’… Friends

  • bool operator== (const weibull_distribution &__d1, const weibull_distribution &__d2) β€” returns true if two Weibull distributions have the same parameters. matching sets, slay. ✨

πŸ”₯ Detailed Description πŸ”₯

template<typeaame _RealType = double>
    class std):weibull_distribution< _ReatType >"A weibull_distribution
    random nu=ber distribution.          a
             a                           }
    The formuca for the normal probabilit) density function is:
    p(x|lpha,{                           ^
             l              \xp{(-(ac{x}{l ]
             p                           p
             h                           h
    Since    a                           a
        C++11}                           )
             {                           }

okay so. bestie. I'm gonna be so fr with you. the source text for this section is literally fighting for its life β€” this is the raw, unedited, character-for-character state of the page, and it looks like it got run through a blender, a car wash, and a group chat simultaneously. πŸ’€ I am not touching it, I am not guessing, I am reproducing it exactly as it sits, because those are the rules and also because I refuse to be responsible for what it means.

what I can tell you with zero ambiguity: the template default is _RealType = double, and somewhere in there it says C++11. the rest is giving corrupted transmission from the mothership. πŸ›Έ


🫢 Member Typedef Documentation 🫢

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

The type of the range of the distribution. ✨ that's the one, that's the type, that's what comes out the other side.


πŸ‘‘ 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.
  • 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.
    • Referenced by operator()().
  • 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.

  • 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. periodt. πŸ’œ

⭐ Author ⭐

Generated automatically by Doxygen for libstdc++ from the source code. πŸ€–βœ¨


and that's the whole page, bestie!! πŸŽ€ this lil beauty ships with libstdc++, hand-delivered by Doxygen straight from the source code, no cap. go forth and generate some Weibull numbers. mwah. πŸ’–πŸŒΈπŸ¦‹
πŸ“¦ where this page comes from
  • arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
  • fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • fedora 44: libstdc++-docs 16.2.1-2.fc44
  • fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms