.TH "std::lognormal_distribution< _RealType >" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::lognormal_distribution< _RealType > \- A lognormal_distribution random number distribution\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Classes" .in +1c .ti -1c .RI "struct \fBparam_type\fP" .br .in -1c .SS "Public Types" .in +1c .ti -1c .RI "\fBtypedef\fP _RealType \fBresult_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBlognormal_distribution\fP (_RealType __m, _RealType \fB__s\fP=_RealType(1))" .br .ti -1c .RI "\fBlognormal_distribution\fP (\fBconst\fP \fBparam_type\fP &__p)" .br .ti -1c .RI "template<\fBtypename\fP \fB_ForwardIterator\fP , \fBtypename\fP \fB_UniformRandomNumberGenerator\fP > \fBvoid\fP \fB__generate\fP (\fB_ForwardIterator\fP __f, \fB_ForwardIterator\fP __t, \fB_UniformRandomNumberGenerator\fP &\fB__urng\fP)" .br .ti -1c .RI "template<\fBtypename\fP \fB_ForwardIterator\fP , \fBtypename\fP \fB_UniformRandomNumberGenerator\fP > \fBvoid\fP \fB__generate\fP (\fB_ForwardIterator\fP __f, \fB_ForwardIterator\fP __t, \fB_UniformRandomNumberGenerator\fP &\fB__urng\fP, \fBconst\fP \fBparam_type\fP &__p)" .br .ti -1c .RI "template<\fBtypename\fP \fB_UniformRandomNumberGenerator\fP > \fBvoid\fP \fB__generate\fP (\fBresult_type\fP *__f, \fBresult_type\fP *__t, \fB_UniformRandomNumberGenerator\fP &\fB__urng\fP, \fBconst\fP \fBparam_type\fP &__p)" .br .ti -1c .RI "_RealType \fBm\fP () \fBconst\fP" .br .ti -1c .RI "\fBresult_type\fP \fBmax\fP () \fBconst\fP" .br .RI "Returns the least upper bound value of the distribution\&. " .ti -1c .RI "\fBresult_type\fP \fBmin\fP () \fBconst\fP" .br .RI "Returns the greatest lower bound value of the distribution\&. " .ti -1c .RI "template<\fBtypename\fP \fB_UniformRandomNumberGenerator\fP > \fBresult_type\fP \fBoperator()\fP (\fB_UniformRandomNumberGenerator\fP &\fB__urng\fP)" .br .RI "Generating functions\&. " .ti -1c .RI "template<\fBtypename\fP \fB_UniformRandomNumberGenerator\fP > \fBresult_type\fP \fBoperator()\fP (\fB_UniformRandomNumberGenerator\fP &\fB__urng\fP, \fBconst\fP \fBparam_type\fP &__p)" .br .ti -1c .RI "\fBparam_type\fP \fBparam\fP () \fBconst\fP" .br .RI "Returns the parameter set of the distribution\&. " .ti -1c .RI "\fBvoid\fP \fBparam\fP (\fBconst\fP \fBparam_type\fP &\fB__param\fP)" .br .RI "Sets the parameter set of the distribution\&. " .ti -1c .RI "\fBvoid\fP \fBreset\fP ()" .br .ti -1c .RI "_RealType \fBs\fP () \fBconst\fP" .br .in -1c .SS "Friends" .in +1c .ti -1c .RI "template<\fBtypename\fP \fB_RealType1\fP , \fBtypename\fP _CharT , \fBtypename\fP _Traits > \fBstd::basic_ostream\fP< _CharT, _Traits > & \fBoperator<<\fP (\fBstd::basic_ostream\fP< _CharT, _Traits > &\fB__os\fP, \fBconst\fP \fBstd::lognormal_distribution\fP< \fB_RealType1\fP > &__x)" .br .RI "Inserts a lognormal_distribution random number distribution \fC__x\fP into the output stream \fC__os\fP\&. " .ti -1c .RI "bool \fBoperator==\fP (\fBconst\fP \fBlognormal_distribution\fP &__d1, \fBconst\fP \fBlognormal_distribution\fP &\fB__d2\fP)" .br .RI "Return true if two lognormal distributions have the same parameters and the sequences that would be generated are equal\&. " .ti -1c .RI "template<\fBtypename\fP \fB_RealType1\fP , \fBtypename\fP _CharT , \fBtypename\fP _Traits > \fBstd::basic_istream\fP< _CharT, _Traits > & \fBoperator>>\fP (\fBstd::basic_istream\fP< _CharT, _Traits > &\fB__is\fP, \fBstd::lognormal_distribution\fP< \fB_RealType1\fP > &__x)" .br .RI "Extracts a lognormal_distribution random number distribution \fC__x\fP from the input stream \fC__is\fP\&. " .in -1c .SH "Detailed Description" .PP .SS "template<\fBtypename\fP _RealType = double> .br class std::lognormal_distribution< _RealType >"A lognormal_distribution random number distribution\&. The formula for the normal probability mass function is \[ p(x|m,s) = \frac{1}{sx\sqrt{2\pi}} \exp{-\frac{(\ln{x} - m)^2}{2s^2}} \] .PP Definition at line \fB2185\fP of file \fBrandom\&.h\fP\&. .SH "Member Typedef Documentation" .PP .SS "template<\fBtypename\fP _RealType = double> \fBtypedef\fP _RealType \fBstd::lognormal_distribution\fP< _RealType >::result_type" The type of the range of the distribution\&. .PP Definition at line \fB2192\fP of file \fBrandom\&.h\fP\&. .SH "Constructor & Destructor Documentation" .PP .SS "template<\fBtypename\fP _RealType = double> \fBstd::lognormal_distribution\fP< _RealType >::lognormal_distribution ()\fC [inline]\fP" .PP Definition at line \fB2227\fP of file \fBrandom\&.h\fP\&. .SS "template<\fBtypename\fP _RealType = double> \fBstd::lognormal_distribution\fP< _RealType >::lognormal_distribution (_RealType __m, _RealType __s = \fC_RealType(1)\fP)\fC [inline]\fP, \fC [explicit]\fP" .PP Definition at line \fB2230\fP of file \fBrandom\&.h\fP\&. .SS "template<\fBtypename\fP _RealType = double> \fBstd::lognormal_distribution\fP< _RealType >::lognormal_distribution (\fBconst\fP \fBparam_type\fP & __p)\fC [inline]\fP, \fC [explicit]\fP" .PP Definition at line \fB2235\fP of file \fBrandom\&.h\fP\&. .SH "Member Function Documentation" .PP .SS "template<\fBtypename\fP _RealType = double> template<\fBtypename\fP \fB_ForwardIterator\fP , \fBtypename\fP \fB_UniformRandomNumberGenerator\fP > \fBvoid\fP \fBstd::lognormal_distribution\fP< _RealType >::__generate (\fB_ForwardIterator\fP __f, \fB_ForwardIterator\fP __t, \fB_UniformRandomNumberGenerator\fP & __urng)\fC [inline]\fP" .PP Definition at line \fB2303\fP of file \fBrandom\&.h\fP\&. .SS "template<\fBtypename\fP _RealType = double> template<\fBtypename\fP \fB_ForwardIterator\fP , \fBtypename\fP \fB_UniformRandomNumberGenerator\fP > \fBvoid\fP \fBstd::lognormal_distribution\fP< _RealType >::__generate (\fB_ForwardIterator\fP __f, \fB_ForwardIterator\fP __t, \fB_UniformRandomNumberGenerator\fP & __urng, \fBconst\fP \fBparam_type\fP & __p)\fC [inline]\fP" .PP Definition at line \fB2310\fP of file \fBrandom\&.h\fP\&. .SS "template<\fBtypename\fP _RealType = double> template<\fBtypename\fP \fB_UniformRandomNumberGenerator\fP > \fBvoid\fP \fBstd::lognormal_distribution\fP< _RealType >::__generate (\fBresult_type\fP * __f, \fBresult_type\fP * __t, \fB_UniformRandomNumberGenerator\fP & __urng, \fBconst\fP \fBparam_type\fP & __p)\fC [inline]\fP" .PP Definition at line \fB2317\fP of file \fBrandom\&.h\fP\&. .SS "template<\fBtypename\fP _RealType = double> _RealType \fBstd::lognormal_distribution\fP< _RealType >::m () const\fC [inline]\fP" .PP Definition at line \fB2250\fP of file \fBrandom\&.h\fP\&. .SS "template<\fBtypename\fP _RealType = double> \fBresult_type\fP \fBstd::lognormal_distribution\fP< _RealType >::max () const\fC [inline]\fP" .PP Returns the least upper bound value of the distribution\&. .PP Definition at line \fB2283\fP of file \fBrandom\&.h\fP\&. .PP References \fBstd::numeric_limits< _Tp >::max()\fP\&. .SS "template<\fBtypename\fP _RealType = double> \fBresult_type\fP \fBstd::lognormal_distribution\fP< _RealType >::min () const\fC [inline]\fP" .PP Returns the greatest lower bound value of the distribution\&. .PP Definition at line \fB2276\fP of file \fBrandom\&.h\fP\&. .SS "template<\fBtypename\fP _RealType = double> template<\fBtypename\fP \fB_UniformRandomNumberGenerator\fP > \fBresult_type\fP \fBstd::lognormal_distribution\fP< _RealType >::operator() (\fB_UniformRandomNumberGenerator\fP & __urng)\fC [inline]\fP" .PP Generating functions\&. .PP Definition at line \fB2291\fP of file \fBrandom\&.h\fP\&. .PP References \fBstd::lognormal_distribution< _RealType >::operator()()\fP\&. .PP Referenced by \fBstd::lognormal_distribution< _RealType >::operator()()\fP\&. .SS "template<\fBtypename\fP _RealType = double> template<\fBtypename\fP \fB_UniformRandomNumberGenerator\fP > \fBresult_type\fP \fBstd::lognormal_distribution\fP< _RealType >::operator() (\fB_UniformRandomNumberGenerator\fP & __urng, \fBconst\fP \fBparam_type\fP & __p)\fC [inline]\fP" .PP Definition at line \fB2296\fP of file \fBrandom\&.h\fP\&. .SS "template<\fBtypename\fP _RealType = double> \fBparam_type\fP \fBstd::lognormal_distribution\fP< _RealType >::param () const\fC [inline]\fP" .PP Returns the parameter set of the distribution\&. .PP Definition at line \fB2261\fP of file \fBrandom\&.h\fP\&. .SS "template<\fBtypename\fP _RealType = double> \fBvoid\fP \fBstd::lognormal_distribution\fP< _RealType >::param (\fBconst\fP \fBparam_type\fP & __param)\fC [inline]\fP" .PP Sets the parameter set of the distribution\&. .PP \fBParameters\fP .RS 4 \fI__param\fP The new parameter set of the distribution\&. .RE .PP .PP Definition at line \fB2269\fP of file \fBrandom\&.h\fP\&. .SS "template<\fBtypename\fP _RealType = double> \fBvoid\fP \fBstd::lognormal_distribution\fP< _RealType >::reset ()\fC [inline]\fP" Resets the distribution state\&. .PP Definition at line \fB2243\fP of file \fBrandom\&.h\fP\&. .PP References \fBstd::normal_distribution< _RealType >::reset()\fP\&. .SS "template<\fBtypename\fP _RealType = double> _RealType \fBstd::lognormal_distribution\fP< _RealType >::s () const\fC [inline]\fP" .PP Definition at line \fB2254\fP of file \fBrandom\&.h\fP\&. .SH "Friends And Related Symbol Documentation" .PP .SS "template<\fBtypename\fP _RealType = double> template<\fBtypename\fP \fB_RealType1\fP , \fBtypename\fP _CharT , \fBtypename\fP _Traits > \fBstd::basic_ostream\fP< _CharT, _Traits > & \fBoperator\fP<< (\fBstd::basic_ostream\fP< _CharT, _Traits > & __os, \fBconst\fP \fBstd::lognormal_distribution\fP< \fB_RealType1\fP > & __x)\fC [friend]\fP" .PP Inserts a lognormal_distribution random number distribution \fC__x\fP into the output stream \fC__os\fP\&. .PP \fBParameters\fP .RS 4 \fI__os\fP An output stream\&. .br \fI__x\fP A lognormal_distribution random number distribution\&. .RE .PP \fBReturns\fP .RS 4 The output stream with the state of \fC__x\fP inserted or in an error state\&. .RE .PP .SS "template<\fBtypename\fP _RealType = double> bool \fBoperator\fP== (\fBconst\fP \fBlognormal_distribution\fP< _RealType > & __d1, \fBconst\fP \fBlognormal_distribution\fP< _RealType > & __d2)\fC [friend]\fP" .PP Return true if two lognormal distributions have the same parameters and the sequences that would be generated are equal\&. .PP Definition at line \fB2328\fP of file \fBrandom\&.h\fP\&. .SS "template<\fBtypename\fP _RealType = double> template<\fBtypename\fP \fB_RealType1\fP , \fBtypename\fP _CharT , \fBtypename\fP _Traits > \fBstd::basic_istream\fP< _CharT, _Traits > & \fBoperator\fP>> (\fBstd::basic_istream\fP< _CharT, _Traits > & __is, \fBstd::lognormal_distribution\fP< \fB_RealType1\fP > & __x)\fC [friend]\fP" .PP Extracts a lognormal_distribution random number distribution \fC__x\fP from the input stream \fC__is\fP\&. .PP \fBParameters\fP .RS 4 \fI__is\fP An input stream\&. .br \fI__x\fP A lognormal_distribution random number generator engine\&. .RE .PP \fBReturns\fP .RS 4 The input stream with \fC__x\fP extracted or in an error state\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.