Difference between revisions of "cpp/numeric/random/student t distribution"
From cppreference.com
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh) |
m (Shorten template names. Use {{lc}} where appropriate.) |
||
Line 13: | Line 13: | ||
===Member types=== | ===Member types=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{hitem | Member type | Definition}} |
− | {{ | + | {{| {{tt|result_type}} | {{c|RealType}}}} |
− | {{ | + | {{| {{tt|param_type}} | the type of the parameter set, unspecified}} |
− | {{ | + | {{end}} |
===Member functions=== | ===Member functions=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| cpp/numeric/random/distribution/dcl list constructor | student_t_distribution}} |
− | {{ | + | {{| cpp/numeric/random/distribution/dcl list reset | student_t_distribution}} |
− | {{ | + | {{h2 | Generation}} |
− | {{ | + | {{| cpp/numeric/random/distribution/dcl list operator() | student_t_distribution}} |
− | {{ | + | {{h2 | Characteristics}} |
− | {{ | + | {{| cpp/numeric/random/student_t_distribution/dcl list n}} |
− | {{ | + | {{| cpp/numeric/random/distribution/dcl list param | student_t_distribution}} |
− | {{ | + | {{| cpp/numeric/random/distribution/dcl list min | student_t_distribution}} |
− | {{ | + | {{| cpp/numeric/random/distribution/dcl list max | student_t_distribution}} |
− | {{ | + | {{end}} |
===Non-member functions=== | ===Non-member functions=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| cpp/numeric/random/distribution/dcl list operator_cmp | student_t_distribution}} |
− | {{ | + | {{| cpp/numeric/random/distribution/dcl list operator_ltltgtgt | student_t_distribution}} |
− | {{ | + | {{end}} |
===Example=== | ===Example=== |
Revision as of 20:24, 31 May 2013
Defined in header <random>
|
||
template< class RealType = double > class student_t_distribution; |
(since C++11) | |
Produces random floating-point values x, distributed according to probability density function:
- P(x|n) =
·1 √nπ
· ⎛Γ(
)n+1 2 Γ(
)n 2
⎜
⎝1+
⎞x2 n
⎟
⎠ -n+1 2
where n is known as the number of degrees of freedom. This distribution is used when estimating the mean of an unknown normally distributed value given n+1 independent measurements, each with additive errors of unknown standard deviation, as in physical measurements. Or, alternatively, when estimating the unknown mean of a normal distribution with unknown standard deviation, given n+1 samples.
Contents |
Member types
Member type | Definition |
result_type
|
RealType |
param_type
|
the type of the parameter set, unspecified |
Member functions
Non-member functions
Example
This section is incomplete Reason: no example |
External links
Weisstein, Eric W. "Student's t-Distribution." From MathWorld--A Wolfram Web Resource.