#include <StudentDistribution.hpp>
Inheritance diagram for StudentDistribution:


A typical way to use this class follows:
// Declare a 'StudentDistribution' object with // 1 degree of freedom (default) StudentDistribution stuObj; double x(5.7); cout << stuObj.pdf(x) << " | " << stuObj.cdf(x) << " | " << stuObj.Q(x) << endl; // Now, the same but with four degrees of freedom cout << stuObj.pdf(x, 4) << " | " << stuObj.cdf(x, 4) << " | " << stuObj.Q(x, 4) << endl;
Definition at line 70 of file StudentDistribution.hpp.
Public Member Functions | |
| StudentDistribution () | |
| Default constructor. Sets the number of degrees of freedom to 1. | |
| StudentDistribution (int n) | |
| Explicit constructor. | |
| virtual double | pdf (double x) |
| Computes the probability density function. | |
| virtual double | pdf (double x, int n) |
| Computes the probability density function. | |
| virtual double | cdf (double x) |
| Computes the cumulative distribution function. | |
| virtual double | cdf (double x, int n) |
| Computes the cumulative distribution function. | |
| virtual double | Q (double x) |
| Computes the upper tail of the t-student probability function Q(x, ndf). | |
| virtual double | Q (double x, int n) |
| Computes the upper tail of the t-student probability function Q(x, n). | |
| virtual double | getNDF (void) const |
| Get number of degrees of freedom. | |
| virtual StudentDistribution & | setNDF (int n) throw (InvalidParameter) |
| Set the number of degrees of freedom. | |
|
|
Default constructor. Sets the number of degrees of freedom to 1.
Definition at line 76 of file StudentDistribution.hpp. |
|
|
Explicit constructor.
Definition at line 85 of file StudentDistribution.hpp. |
|
||||||||||||
|
Computes the cumulative distribution function.
Definition at line 121 of file StudentDistribution.hpp. |
|
|
Computes the cumulative distribution function.
Implements BaseDistribution. Definition at line 80 of file StudentDistribution.cpp. References gpstk::atan(), gpstk::regIncompleteBeta(), and gpstk::sqrt(). |
|
|
Get number of degrees of freedom.
Definition at line 147 of file StudentDistribution.hpp. |
|
||||||||||||
|
Computes the probability density function.
Definition at line 103 of file StudentDistribution.hpp. |
|
|
Computes the probability density function.
Implements BaseDistribution. Definition at line 45 of file StudentDistribution.cpp. References gpstk::exp(), gpstk::lngamma(), PI, and gpstk::sqrt(). |
|
||||||||||||
|
Computes the upper tail of the t-student probability function Q(x, n).
Definition at line 142 of file StudentDistribution.hpp. |
|
|
Computes the upper tail of the t-student probability function Q(x, ndf).
Definition at line 130 of file StudentDistribution.hpp. |
|
|
Set the number of degrees of freedom.
Definition at line 115 of file StudentDistribution.cpp. References GPSTK_THROW. |
1.3.9.1