The Student t distribution is a real valued distribution with one parameter n, the number of degrees of freedom. More...
#include <student_t_distribution.hpp>
Classes | |
class | param_type |
Public Types | |
typedef RealType | result_type |
typedef RealType | input_type |
Public Member Functions | |
student_t_distribution (RealType n_arg=RealType(1.0)) | |
Constructs an student_t_distribution with "n" degrees of freedom. More... | |
student_t_distribution (const param_type &parm) | |
Constructs an student_t_distribution from its parameters. More... | |
template<class URNG > | |
RealType | operator() (URNG &urng) |
Returns a random variate distributed according to the Student t distribution. More... | |
template<class URNG > | |
RealType | operator() (URNG &urng, const param_type &parm) const |
Returns a random variate distributed accordint to the Student t distribution with parameters specified by param . More... | |
RealType | n () const |
Returns the number of degrees of freedom. More... | |
RealType min | BOOST_PREVENT_MACRO_SUBSTITUTION () const |
Returns the smallest value that the distribution can produce. More... | |
RealType max | BOOST_PREVENT_MACRO_SUBSTITUTION () const |
Returns the largest value that the distribution can produce. More... | |
param_type | param () const |
Returns the parameters of the distribution. More... | |
void | param (const param_type &parm) |
Sets the parameters of the distribution. More... | |
void | reset () |
Effects: Subsequent uses of the distribution do not depend on values produced by any engine prior to invoking reset. More... | |
BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR (os, student_t_distribution, td) | |
Writes a student_t_distribution to a std::ostream . More... | |
BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR (is, student_t_distribution, td) | |
Reads a student_t_distribution from a std::istream . More... | |
BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR (student_t_distribution, lhs, rhs) | |
Returns true if the two instances of student_t_distribution will return identical sequences of values given equal generators. More... | |
The Student t distribution is a real valued distribution with one parameter n, the number of degrees of freedom.
It has .
typedef RealType boost::random::student_t_distribution< RealType >::input_type |
typedef RealType boost::random::student_t_distribution< RealType >::result_type |
|
inlineexplicit |
Constructs an student_t_distribution
with "n" degrees of freedom.
Requires: n > 0
Referenced by boost::random::student_t_distribution< RealType >::operator()().
|
inlineexplicit |
Constructs an student_t_distribution
from its parameters.
|
inline |
Returns the smallest value that the distribution can produce.
|
inline |
Returns the largest value that the distribution can produce.
|
inline |
Returns true if the two instances of student_t_distribution
will return identical sequences of values given equal generators.
|
inline |
Reads a student_t_distribution
from a std::istream
.
|
inline |
Writes a student_t_distribution
to a std::ostream
.
|
inline |
Returns the number of degrees of freedom.
|
inline |
Returns a random variate distributed according to the Student t distribution.
References boost::random::student_t_distribution< RealType >::param_type::n(), and boost::geometry::math::sqrt().
|
inline |
Returns a random variate distributed accordint to the Student t distribution with parameters specified by param
.
References boost::random::student_t_distribution< RealType >::student_t_distribution().
|
inline |
Returns the parameters of the distribution.
References boost::random::student_t_distribution< RealType >::param_type::n(), and boost::random::student_t_distribution< RealType >::param_type::param_type().
|
inline |
Sets the parameters of the distribution.
References boost::random::student_t_distribution< RealType >::param_type::n(), and boost::random::chi_squared_distribution< RealType >::param().
|
inline |
Effects: Subsequent uses of the distribution do not depend on values produced by any engine prior to invoking reset.