STD::CHI_SQUARED_DISTRIBUTION(3cxx)
π NAME π
okay so bestie, welcome to the 3cxx manual page for std::chi_squared_distribution< _RealType > β it's a chi_squared_distribution random number distribution. π
β¨ SYNOPSIS β¨
#include <random>
π Classes
struct param_type
π¦ Public Types
typedef _RealType result_type
π Public Member Functions
chi_squared_distribution (_RealType __n)chi_squared_distribution (const param_type &__p)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)template<typename _UniformRandomNumberGenerator > void __generate (result_type *__f, result_type *__t, _UniformRandomNumberGenerator &__urng, const param_type &__p)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._RealType n () consttemplate<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 ()β resets the distribution state.
π«Ά Friends
template<typename _RealType1 , typename _CharT , typename _Traits > std::basic_ostream< _CharT, _Traits > & operator<< (std::basic_ostream< _CharT, _Traits > &__os, const std::chi_squared_distribution< _RealType1 > &__x)β inserts achi_squared_distributionrandom number distribution__xinto the output stream__os.bool operator== (const chi_squared_distribution &__d1, const chi_squared_distribution &__d2)β return true if two Chi-squared 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::chi_squared_distribution< _RealType1 > &__x)β extracts achi_squared_distributionrandom number distribution__xfrom the input stream__is.
π Detailed Description π
template<typename _RealType = double> class std::chi_squared_distribution< _RealType > is a chi_squared_distribution random number distribution.
The formula for the normal probability mass function is:
$p(x|n) = ac{x^{(n/2) - 1}e^{-x/2}}{Gamma(n/2) 2^{n/2}}$
Since C++11.
πΈ Member Typedef Documentation πΈ
template<typename _RealType = double> typedef _RealType std::chi_squared_distribution< _RealType >::result_typeβ the type of the range of the distribution.
β Member Function Documentation β
template<typename _RealType = double> result_type std::chi_squared_distribution< _RealType >::max () const [inline]β returns the least upper bound value of the distribution.- References
std::numeric_limits< _Tp >::max().
- References
template<typename _RealType = double> result_type std::chi_squared_distribution< _RealType >::min () const [inline]β returns the greatest lower bound value of the distribution.template<typename _RealType = double> template<typename _UniformRandomNumberGenerator > result_type std::chi_squared_distribution< _RealType >::operator() (_UniformRandomNumberGenerator & __urng) [inline]β generating functions.template<typename _RealType = double> param_type std::chi_squared_distribution< _RealType >::param () const [inline]β returns the parameter set of the distribution.template<typename _RealType = double> void std::chi_squared_distribution< _RealType >::param (const param_type & __param) [inline]β sets the parameter set of the distribution.- Parameters:
__paramβ the new parameter set of the distribution. - References
std::gamma_distribution< _RealType >::param().
- Parameters:
template<typename _RealType = double> void std::chi_squared_distribution< _RealType >::reset () [inline]β resets the distribution state.- References
std::gamma_distribution< _RealType >::reset().
- References
π§ 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::chi_squared_distribution< _RealType1 > & __x) [friend]β inserts achi_squared_distributionrandom number distribution__xinto the output stream__os.- Parameters:
__osβ an output stream.__xβ achi_squared_distributionrandom number distribution. - Returns: the output stream with the state of
__xinserted or in an error state.
- Parameters:
template<typename _RealType = double> bool operator== (const chi_squared_distribution< _RealType > & __d1, const chi_squared_distribution< _RealType > & __d2) [friend]β Return true if two Chi-squared 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::chi_squared_distribution< _RealType1 > & __x) [friend]β extracts achi_squared_distributionrandom number distribution__xfrom the input stream__is.- Parameters:
__isβ an input stream.__xβ achi_squared_distributionrandom number generator engine. - Returns: the input stream with
__xextracted or in an error state.
- Parameters:
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
okay that's the whole page, bestie π«Ά β the footer/source line is literally libststd::chi_square...on< _RealType >(3cxx), and this was generated automatically by Doxygen for libstdc++ from the source code. No date is printed on the page, so I'm not inventing one π.
π¦ 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