STD::EXTREME_VALUE_DISTRIBUTION(3)

✨ std::extreme_value_distribution< _RealType > ✨

okay bestie, sit down, hydrate, and let's talk about a random number distribution β€” this whole page lives in the libstdc++ Library Functions Manual, section 3, and it's genuinely so much. πŸ’–


πŸŽ€ NAME πŸŽ€

std::extreme_value_distribution< _RealType > β€” bestie it is literally "A extreme_value_distribution random number distribution." that's the whole vibe, that's the name. πŸ¦‹


🌸 SYNOPSIS 🌸

#include <random>

πŸ’… Classes πŸ’…

  • struct param_type

🫢 Public Types 🫢

  • typedef _RealType result_type

✨ Public Member Functions ✨

  • extreme_value_distribution (_RealType __a, _RealType __b=_RealType(1)) β€” constructor, and yes the __b default is _RealType(1), look at her go πŸ’«
  • extreme_value_distribution (const param_type &__p) β€” constructor but make it a parameter-set girlie
  • template<typename _ForwardIterator, typename _UniformRandomNumberGenerator> void __generate (_ForwardIterator __f, _ForwardIterator __t, _UniformRandomNumberGenerator &__urng) β€” the generate-y one
  • template<typename _ForwardIterator, typename _UniformRandomNumberGenerator> void __generate (_ForwardIterator __f, _ForwardIterator __t, _UniformRandomNumberGenerator &__urng, const param_type &__p) β€” same energy but now with a param_type passed in, no cap
  • template<typename _UniformRandomNumberGenerator> void __generate (result_type *__f, result_type *__t, _UniformRandomNumberGenerator &__urng, const param_type &__p) β€” pointer-flavoured __generate, iconic
  • _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.
  • template<typename _UniformRandomNumberGenerator> result_type operator() (_UniformRandomNumberGenerator &__urng, const param_type &__p) β€” the other generating function, she's right there
  • 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.

πŸ“ Friends πŸ“

  • bool operator== (const extreme_value_distribution &__d1, const extreme_value_distribution &__d2) β€” Return true if two extreme value distributions have the same parameters.

🌈 Detailed Description 🌈

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

"A extreme_value_distribution random number distribution." that's her, that's the girl πŸ’œ

The formula for the normal probability mass function is, and I'm quoting this exactly because it's a whole moment:

p(x|a,b) =
ac{1}{b}
               \xp( ac{a-x}{b} - \xp(ac{a-x}{b})) ]

Since β€” C++11 ✨ (yes she's been around, she's vintage-adjacent, she's a legend for it)


πŸ’– Member Typedef Documentation πŸ’–

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

The type of the range of the distribution. periodt. πŸ‘‘


πŸ¦‹ Member Function Documentation πŸ¦‹

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

Return the $a$ parameter of the distribution. πŸŽ€

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

Return the $b$ parameter of the distribution. πŸŽ€

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

Returns the least upper bound value of the distribution. πŸ’…

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

Returns the greatest lower bound value of the distribution. πŸ’…

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

Generating functions.

Referenced by operator()().
template<typename _RealType = double>
    param_type std::extreme_value_distribution< _RealType >::param () const [inline]

Returns the parameter set of the distribution.

Referenced by std::operator>>().
template<typename _RealType = double>
    void std::extreme_value_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::extreme_value_distribution< _RealType >::reset () [inline]

Resets the distribution state. fresh start energy, we love a reset 🧚


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

Return true if two extreme value distributions have the same parameters. twin behaviour, fr fr 🫢


🌸 Author 🌸

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


and that's the whole page bestie, you ate, no crumbs πŸ’…βœ¨ this one came straight out of the libstdc++ manual, page 3, section <rainbow>std::extreme_value_distribution< _RealType >(3)</rainbow> β€” credit where credit is due, go thank libstdc++ πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ 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