Defines Student's T-Distribution.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=real64), | public | :: | dof |
The number of degrees of freedom. |
Computes the cumulative distribution function.
The CDF for Student's T-Distribution is given as F(t)=∫t−∞f(u)du=1−12Ix(t)(ν2,12) where x(t)=νν+t2.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(t_distribution), | intent(in) | :: | this |
The t_distribution object. |
||
real(kind=real64), | intent(in) | :: | x |
The value at which to evaluate the function. |
The value of the function.
Gets the defined range for the distribution.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(distribution), | intent(in) | :: | this |
The distribution object. |
The defined range of the probability distributions [min, max]. In the event that either min or max are infinite, a value of huge(0.0d0) is returned as opposed to infinite to avoid possible issues with using these values directly.
Computes the mean of the distribution.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(t_distribution), | intent(in) | :: | this |
The t_distribution object. |
The mean.
Computes the median of the distribution.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(t_distribution), | intent(in) | :: | this |
The t_distribution object. |
Computes the mode of the distribution.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(t_distribution), | intent(in) | :: | this |
The t_distribution object. |
The mode.
Computes the probability density function.
The PDF for Student's T-Distribution is given as f(t)=Γ(ν+12)√νπΓ(ν2)(1+t2ν)−(ν+1)/2.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(t_distribution), | intent(in) | :: | this |
The t_distribution object. |
||
real(kind=real64), | intent(in) | :: | x |
The value at which to evaluate the function. |
The value of the function.
Recenters the distribution about the supplied value. This routine has no effect for this distribution as it is always centered about 0.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(t_distribution), | intent(inout) | :: | this |
The t_distribution object. |
||
real(kind=real64), | intent(in) | :: | x |
The value about which to recenter. |
Computes the standardized variable for the distribution.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(distribution), | intent(in) | :: | this |
The distribution object. |
||
real(kind=real64), | intent(in) | :: | x |
The value of interest. |
The result.
Computes the variance of the distribution.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(t_distribution), | intent(in) | :: | this |
The t_distribution object. |
The variance.