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__mand__s, and if you ghost the__sit just defaults to_RealType(1).lognormal_distribution (const param_type &__p)β same energy, but you're handing over a wholeparam_typeinstead.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 () constresult_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__xinto the output stream__os.bool operator== (const lognormal_distribution &__d1, const lognormal_distribution &__d2)β Returntrueif 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__xfrom 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. π¦
π«Ά Friends And Related Symbol Documentation π«Ά
β 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