STD::LOGNORMAL_DISTRIBUTION(3)

πŸ’– NAME πŸ’–

std::lognormal_distribution< _RealType > β€” okay so it's a lognormal_distribution random number distribution. That's the whole name, bestie, and it's giving exactly what it says on the tin. ✨

Coming at you live from the Library Functions Manual, no cap. πŸ’…

✨ SYNOPSIS ✨

#include <random>

πŸŽ€ Classes πŸŽ€

  • struct param_type β€” yes, the param bag, we love her.

πŸ¦‹ Public Types πŸ¦‹

  • typedef _RealType result_type

πŸ‘‘ Public Member Functions πŸ‘‘

  • lognormal_distribution (_RealType __m, _RealType __s=_RealType(1)) β€” build one of these with __m and __s, and if you ghost the __s it just defaults to _RealType(1).
  • lognormal_distribution (const param_type &__p) β€” same energy, but you're handing over a whole param_type instead.
  • 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)
  • _RealType m () const
  • 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 ()
  • _RealType s () const

🫢 Friends 🫢

  • template<typename _RealType1, typename _CharT, typename _Traits> std::basic_ostream< _CharT, _Traits > & operator<< (std::basic_ostream< _CharT, _Traits > &__os, const std::lognormal_distribution< _RealType1 > &__x) β€” Inserts a lognormal_distribution random number distribution __x into the output stream __os.
  • bool operator== (const lognormal_distribution &__d1, const lognormal_distribution &__d2) β€” Return true if two lognormal distributions have the same parameters and the sequences that would be generated are equal.
  • template<typename _RealType1, typename _CharT, typename _Traits> std::basic_istream< _CharT, _Traits > & operator>> (std::basic_istream< _CharT, _Traits > &__is, std::lognormal_distribution< _RealType1 > &__x) β€” Extracts a lognormal_distribution random number distribution __x from the input stream __is.

🌈 Detailed Description 🌈

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

"A lognormal_distribution random number distribution.

The formula for the normal probability mass function is:

p(x|m,s) = ac{1}{sxt{2i}}
               \xp{-ac{(x} - m)^2}{2s^2}} ]
Since C++11 β€” she's been iconic for a minute, fr fr. πŸŽ€

πŸ’œ Member Typedef Documentation πŸ’œ

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

The type of the range of the distribution. That's the vibe check on what comes out. ✨


πŸ’– Member Function Documentation πŸ’–

🌸 max () const [inline]

template<typename _RealType = double>
result_type std::lognormal_distribution< _RealType >::max () const

Returns the least upper bound value of the distribution.

🌸 min () const [inline]

template<typename _RealType = double>
result_type std::lognormal_distribution< _RealType >::min () const

Returns the greatest lower bound value of the distribution.

🌸 operator() (_UniformRandomNumberGenerator & __urng) [inline]

template<typename _RealType = double>
template<typename _UniformRandomNumberGenerator>
result_type std::lognormal_distribution< _RealType >::operator() (_UniformRandomNumberGenerator & __urng)

Generating functions.

Referenced by operator()().

🌸 param () const [inline]

template<typename _RealType = double>
param_type std::lognormal_distribution< _RealType >::param () const

Returns the parameter set of the distribution.

🌸 param (const param_type & __param) [inline]

template<typename _RealType = double>
void std::lognormal_distribution< _RealType >::param (const param_type & __param)

Sets the parameter set of the distribution.

Parameters

  • __param β€” The new parameter set of the distribution.

🌸 reset () [inline]

template<typename _RealType = double>
void std::lognormal_distribution< _RealType >::reset ()

Resets the distribution state. Fresh start, main character energy. πŸ¦‹


⭐ operator<< [friend]

template<typename _RealType = double>
template<typename _RealType1, typename _CharT, typename _Traits>
std::basic_ostream< _CharT, _Traits > &
operator<< (std::basic_ostream< _CharT, _Traits > & __os,
            const std::lognormal_distribution< _RealType1 > & __x)

Inserts a lognormal_distribution random number distribution __x into the output stream __os.

Parameters

  • __os β€” An output stream.
  • __x β€” A lognormal_distribution random number distribution.

Returns

The output stream with the state of __x inserted or in an error state.

⭐ operator== [friend]

template<typename _RealType = double>
bool operator== (const lognormal_distribution< _RealType > & __d1,
                 const lognormal_distribution< _RealType > & __d2)

Return true if two lognormal distributions have the same parameters and the sequences that would be generated are equal.

⭐ operator>> [friend]

template<typename _RealType = double>
template<typename _RealType1, typename _CharT, typename _Traits>
std::basic_istream< _CharT, _Traits > &
operator>> (std::basic_istream< _CharT, _Traits > & __is,
            std::lognormal_distribution< _RealType1 > & __x)

Extracts a lognormal_distribution random number distribution __x from the input stream __is.

Parameters

  • __is β€” An input stream.
  • __x β€” A lognormal_distribution random number generator engine.

Returns

The input stream with __x extracted or in an error state.


πŸŽ€ Author πŸŽ€

Generated automatically by Doxygen for libstdc++ from the source code. Not me writing a single line by hand, and honestly? Slay. πŸ’…


That's the whole page, bestie β€” straight out of the libstdc++ docs, filed under std::logno...RealType >(3). Go forth and generate, no cap. πŸ¦‹βœ¨πŸ’–

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