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 () const
  • operator() β€” 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 __x into 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 __x from 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().


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