STD::STUDENT_T_DISTRIBUTION(3)

πŸ’– NAME πŸ’–

std::student_t_distribution< _RealType > β€” a student_t_distribution random number distribution. yep, that's the whole name, she's long but she's iconic πŸ‘‘

This page lives in the Library Functions Manual, section 3, so if you ever see std::stude...RealType >(3) floating around, bestie, that's literally her.


✨ SYNOPSIS ✨

#include <random>

πŸŽ€ Classes

  • struct param_type

πŸŽ€ Public Types

  • typedef _RealType result_type

πŸŽ€ Public Member Functions

  • student_t_distribution (_RealType __n)
  • student_t_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 () const
  • template<typename _UniformRandomNumberGenerator> result_type operator() (_UniformRandomNumberGenerator &__urng) β€” Generating functions. this is the one that actually makes the numbers, main character energy fr
  • 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::student_t_distribution< _RealType1 > &__x) β€” Inserts a student_t_distribution random number distribution __x into the output stream __os.
  • 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.
  • 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} ]
ok so that formula is literally copied straight off the page and it's a little cursed looking, but it's hers and we respect it 🫢 no editing, no cap.

Since: C++11 β€” so she's been around, she's not new here πŸ’…


πŸ¦‹ Member Typedef Documentation πŸ¦‹

template<typename _RealType = double> typedef _RealType
    std::student_t_distribution< _RealType >::result_type

The type of the range of the distribution. this is the type of every number she hands you, periodt.


πŸ’œ Member Function Documentation πŸ’œ

template<typename _RealType = double> result_type
    std::student_t_distribution< _RealType >::max () const [inline]

Returns the least upper bound value of the distribution. the ceiling, the limit, the "she will not go above this" πŸš«β¬†οΈ

template<typename _RealType = double> result_type
    std::student_t_distribution< _RealType >::min () const [inline]

Returns the greatest lower bound value of the distribution. the floor, the "she will not go below this" πŸš«β¬‡οΈ

template<typename _RealType = double> template<typename
    _UniformRandomNumberGenerator> result_type std::student_t_distribution<
    _RealType >::operator() (_UniformRandomNumberGenerator & __urng)
    [inline]

Generating functions. 🎲 feed her a uniform random number generator and she pops out a result β€” that's the whole bit.

template<typename _RealType = double> param_type
    std::student_t_distribution< _RealType >::param () const [inline]

Returns the parameter set of the distribution. the receipts πŸ“‹

template<typename _RealType = double> void std::student_t_distribution<
    _RealType >::param (const param_type & __param) [inline]

Sets the parameter set of the distribution. swapping out the whole vibe in one move.

Parameters

  • __param β€” The new parameter set of the distribution.
template<typename _RealType = double> void std::student_t_distribution<
    _RealType >::reset () [inline]

Resets the distribution state. it's giving factory reset, it's giving fresh start ✨


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. she's posting herself to the stream, we love a self-publishing queen πŸ“Έ

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.

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. twinning fr fr πŸ‘―

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. reading the group chat, catching up on the lore πŸ“₯

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.

no human wrote this, bestie, a robot did, and honestly? slay πŸ€–πŸ’…

and that's the whole page, you're welcome 🫢 this was libstdc++, std::stude...RealType >(3), so if you need her again just yell for that exact weird truncated title β€” she'll be there. byeeee πŸ’–πŸŽ€πŸŒΈ

πŸ“¦ where this page comes from
  • arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
  • fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • fedora 44: libstdc++-docs 16.2.1-2.fc44
  • fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms