QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
|
Cumulative Student t-distribution. More...
#include <ql/math/distributions/studenttdistribution.hpp>
Public Member Functions | |
CumulativeStudentDistribution (Integer n) | |
Real | operator() (Real x) const |
Public Attributes | |
QL_DEPRECATED typedef Real | argument_type |
QL_DEPRECATED typedef Real | result_type |
Private Attributes | |
Integer | n_ |
Cumulative Student t-distribution.
Cumulative distribution function for \( n \) degrees of freedom (see mathworld.wolfram.com):
\[ F(x) = \int_{-\infty}^x\,f(y)\,dy = \frac{1}{2}\, +\,\frac{1}{2}\,sgn(x)\, \left[ I\left(1,\frac{n}{2},\frac{1}{2}\right) - I\left(\frac{n}{n+y^2}, \frac{n}{2},\frac{1}{2}\right)\right] \]
where \( I(z; a, b) \) is the regularized incomplete beta function.
Definition at line 76 of file studenttdistribution.hpp.
Definition at line 90 of file studenttdistribution.hpp.
QL_DEPRECATED typedef Real argument_type |
auto
or decltype
instead. Deprecated in version 1.29. Definition at line 82 of file studenttdistribution.hpp.
QL_DEPRECATED typedef Real result_type |
auto
or decltype
instead. Deprecated in version 1.29. Definition at line 88 of file studenttdistribution.hpp.
|
private |
Definition at line 95 of file studenttdistribution.hpp.