STD::STUDENT_T_DISTRIBUTION(3cxx)
okay bestie, welcome to the std::student_t_distribution< _RealType >(3cxx) page from libstdc++ β itβs giving random-number-distribution main character energy, and Iβm obsessed. π
π NAME π
std::student_t_distribution< _RealType > β A student_t_distribution random number distribution. periodt. β¨
π SYNOPSIS π
#include <random>
π¦ Classes π¦
struct param_type
πΈ Public Types πΈ
typedef _RealType result_type
π Public Member Functions π
- constructor β
student_t_distribution (_RealType __n) - constructor β
student_t_distribution (const param_type &__p) - iterator
__generate, no param βtemplate<typename _ForwardIterator , typename _UniformRandomNumberGenerator > void __generate (_ForwardIterator __f, _ForwardIterator __t, _UniformRandomNumberGenerator &__urng) - iterator
__generate, with param βtemplate<typename _ForwardIterator , typename _UniformRandomNumberGenerator > void __generate (_ForwardIterator __f, _ForwardIterator __t, _UniformRandomNumberGenerator &__urng, const param_type &__p) - pointer
__generate, no param βtemplate<typename _UniformRandomNumberGenerator > void __generate (result_type *__f, result_type *__t, _UniformRandomNumberGenerator &__urng) - pointer
__generate, with param βtemplate<typename _UniformRandomNumberGenerator > void __generate (result_type *__f, result_type *__t, _UniformRandomNumberGenerator &__urng, const param_type &__p) max()βresult_type max () constβ Returns the least upper bound value of the distribution. π«Άmin()βresult_type min () constβ Returns the greatest lower bound value of the distribution. π«Άn()β_RealType n () constoperator()βtemplate<typename _UniformRandomNumberGenerator > result_type operator() (_UniformRandomNumberGenerator &__urng)β Generating functions.operator()with param βtemplate<typename _UniformRandomNumberGenerator > result_type operator() (_UniformRandomNumberGenerator &__urng, const param_type &__p)param()βparam_type param () constβ Returns the parameter set of the distribution.param(const param_type &__param)βvoid param (const param_type &__param)β Sets the parameter set of the distribution.reset()βvoid reset ()β Resets the distribution state.
π«Ά Friends π«Ά
operator<<βtemplate<typename _RealType1 , typename _CharT , typename _Traits > std::basic_ostream< _CharT, _Traits > & operator<< (std::basic_ostream< _CharT, _Traits > &__os, const std::student_t_distribution< _RealType1 > &__x)β Inserts a student_t_distribution random number distribution__xinto the output stream__os. πoperator==βbool operator== (const student_t_distribution &__d1, const student_t_distribution &__d2)β Return true if two Student t distributions have the same parameters and the sequences that would be generated are equal. β¨operator>>βtemplate<typename _RealType1 , typename _CharT , typename _Traits > std::basic_istream< _CharT, _Traits > & operator>> (std::basic_istream< _CharT, _Traits > &__is, std::student_t_distribution< _RealType1 > &__x)β Extracts a student_t_distribution random number distribution__xfrom the input stream__is. π
β¨ Detailed Description β¨
template<typename _RealType = double>
class std::student_t_distribution< _RealType >"A student_t_distribution
random number distribution.
The formula for the normal probability mass function is:
p(x|n) = ac{1}{t(ni)}
ac{Gamma((n+1)/2)}{Gamma(n/2)}
(1 + ac{x^2}{n}) ^{-(n+1)/2} ]
Since C++11 β yes bestie, thatβs the era. π°οΈ
π Member Typedef Documentation π
template<typename _RealType = double> typedef _RealType std::student_t_distribution< _RealType >::result_typeβ The type of the range of the distribution. π«
π Member Function Documentation π
max()
template<typename _RealType = double> result_type std::student_t_distribution< _RealType >::max () const [inline]
Returns the least upper bound value of the distribution. π«Ά
References std::numeric_limits< _Tp >::max().
min()
template<typename _RealType = double> result_type std::student_t_distribution< _RealType >::min () const [inline]
Returns the greatest lower bound value of the distribution. π«Ά
References std::numeric_limits< _Tp >::lowest().
operator()
template<typename _RealType = double> template<typename _UniformRandomNumberGenerator > result_type std::student_t_distribution< _RealType >::operator() (_UniformRandomNumberGenerator & __urng) [inline]
Generating functions.
References std::sqrt().
param() const
template<typename _RealType = double> param_type std::student_t_distribution< _RealType >::param () const [inline]
Returns the parameter set of the distribution.
param(const param_type & __param)
template<typename _RealType = double> void std::student_t_distribution< _RealType >::param (const param_type & __param) [inline]
Sets the parameter set of the distribution.
Parameters:
__paramβ The new parameter set of the distribution.
reset()
template<typename _RealType = double> void std::student_t_distribution< _RealType >::reset () [inline]
Resets the distribution state.
References std::normal_distribution< _RealType >::reset(), and std::gamma_distribution< _RealType >::reset().
π Friends And Related Symbol Documentation π
operator<<
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::student_t_distribution< _RealType1 > & __x) [friend]
Inserts a student_t_distribution random number distribution __x into the output stream __os.
Parameters:
__osβ An output stream.__xβ A student_t_distribution random number distribution.
Returns:
The output stream with the state of __x inserted or in an error state.
operator==
template<typename _RealType = double> bool operator== (const student_t_distribution< _RealType > & __d1, const student_t_distribution< _RealType > & __d2) [friend]
Return true if two Student t distributions have the same parameters and the sequences that would be generated are equal.
operator>>
template<typename _RealType = double> template<typename _RealType1 , typename _CharT , typename _Traits > std::basic_istream< _CharT, _Traits > & operator>> (std::basic_istream< _CharT, _Traits > & __is, std::student_t_distribution< _RealType1 > & __x) [friend]
Extracts a student_t_distribution random number distribution __x from the input stream __is.
Parameters:
__isβ An input stream.__xβ A student_t_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. π«‘
okay thatβs the whole page, bestie. Cute sign-off vibe check: source/version is libstdc++, manual page std::student_t_distribution< _RealType >(3cxx), generated by Doxygen from the source code β and the footerβs date slot isnβt filled in on this copy, so Iβm not making one up, fr fr. mwah ππ
π¦ 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