STD::LOGNORMAL_DISTRIBUTION(3cxx)
π NAME π
std::lognormal_distribution< _RealType > β a lognormal_distribution random number distribution. This is the 3cxx manual page, bestie, and it is literally the C++ lognormal distribution template. Slay. π
β¨ SYNOPSIS β¨
#include <random>
π¦ Classes π¦
struct param_typeβ the parameter-type struct, sitting here being iconic. π«Ά
π Public Types π
typedef _RealType result_typeβ the public typedef, exactly as listed.
π Public Member Functions π
lognormal_distribution (_RealType __m, _RealType __s=_RealType(1))β constructor with__mand__s, and__sdefaults to_RealType(1).lognormal_distribution (const param_type &__p)β constructor from aparam_type.template<typename _ForwardIterator , typename _UniformRandomNumberGenerator > void __generate (_ForwardIterator __f, _ForwardIterator __t, _UniformRandomNumberGenerator &__urng)β one of the__generatehelpers; no extra description on the page, so here is the exact signature.template<typename _ForwardIterator , typename _UniformRandomNumberGenerator > void __generate (_ForwardIterator __f, _ForwardIterator __t, _UniformRandomNumberGenerator &__urng, const param_type &__p)β another__generatehelper, this time with aparam_type.template<typename _UniformRandomNumberGenerator > void __generate (result_type *__f, result_type *__t, _UniformRandomNumberGenerator &__urng, const param_type &__p)β the pointer-range__generatehelper, listed with no extra prose._RealType m () constβ them()member function, exact signature, no extra note.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)β same generating-function energy, but with an explicitparam_type; no extra description given here.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 stuff; the full note shows up later, bestie._RealType s () constβ thes()member function, exact signature, no extra note.
π«Ά 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 alognormal_distributionrandom number distribution__xinto 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 alognormal_distributionrandom 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
πΈ Member Typedef Documentation πΈ
template<typename _RealType = double> typedef _RealType
std::lognormal_distribution< _RealType >::result_type
The type of the range of the distribution.
π Member Function Documentation π
template<typename _RealType = double> result_type std::lognormal_distribution< _RealType >::max () const [inline]β Returns the least upper bound value of the distribution. Referencesstd::numeric_limits< _Tp >::max().template<typename _RealType = double> result_type std::lognormal_distribution< _RealType >::min () const [inline]β Returns the greatest lower bound value of the distribution.template<typename _RealType = double> template<typename _UniformRandomNumberGenerator > result_type std::lognormal_distribution< _RealType >::operator() (_UniformRandomNumberGenerator & __urng) [inline]β Generating functions. Referencesstd::lognormal_distribution< _RealType >::operator()(). Referenced bystd::lognormal_distribution< _RealType >::operator()().template<typename _RealType = double> param_type std::lognormal_distribution< _RealType >::param () const [inline]β Returns the parameter set of the distribution.template<typename _RealType = double> void std::lognormal_distribution< _RealType >::param (const param_type & __param) [inline]β Sets the parameter set of the distribution.__paramβ The new parameter set of the distribution.
template<typename _RealType = double> void std::lognormal_distribution< _RealType >::reset () [inline]β Resets the distribution state. Referencesstd::normal_distribution< _RealType >::reset().
π Friends And Related Symbol Documentation π
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) [friend]β Inserts alognormal_distributionrandom number distribution__xinto the output stream__os.__osβ An output stream.__xβ A lognormal_distribution random number distribution.- Returns: The output stream with the state of
__xinserted or in an error state.
template<typename _RealType = double> bool operator== (const lognormal_distribution< _RealType > & __d1, const lognormal_distribution< _RealType > & __d2) [friend]β Return true if two lognormal distributions have the same parameters and the sequences that would be generated are equal.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) [friend]β Extracts alognormal_distributionrandom number distribution__xfrom the input stream__is.__isβ An input stream.__xβ A lognormal_distribution random number generator engine.- Returns: The input stream with
__xextracted or in an error state.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
Okay that is the whole page, bestie π The footer's source/version situation is libststd::lognormal_...on< _RealType >(3cxx), and there is literally no date printed on it, so I am not inventing one. Bye! πβ¨
π¦ 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