24#ifndef quantlib_student_t_distribution_hpp
25#define quantlib_student_t_distribution_hpp
45 QL_REQUIRE(
n > 0,
"invalid parameter for t-distribution");
67 QL_REQUIRE(
n > 0,
"invalid parameter for t-distribution");
83 Size maxIterations = 50)
Cumulative Student t-distribution.
Real operator()(Real x) const
CumulativeStudentDistribution(Integer n)
Inverse cumulative Student t-distribution.
Real operator()(Real x) const
InverseCumulativeStudent(Integer n, Real accuracy=1e-6, Size maxIterations=50)
CumulativeStudentDistribution f_
Real operator()(Real x) const
StudentDistribution(Integer n)
Classes and functions for error handling.
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
QL_INTEGER Integer
integer number
std::size_t Size
size of a container