Defines a normal distribution.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=real64), | public | :: | mean_value |
The mean value of the distribution. |
|||
real(kind=real64), | public | :: | standard_deviation |
The standard deviation of the distribution. |
Computes the cumulative distribution function.
The CDF for a normal distribution is given as .
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(normal_distribution), | intent(in) | :: | this |
The normal_distribution object. |
||
real(kind=real64), | intent(in) | :: | x |
The value at which to evaluate the function. |
The value of the function.
Computes the mean of the distribution.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(normal_distribution), | intent(in) | :: | this |
The normal_distribution object. |
The mean
Computes the median of the distribution.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(normal_distribution), | intent(in) | :: | this |
The normal_distribution object. |
The median.
Computes the mode of the distribution.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(normal_distribution), | intent(in) | :: | this |
The normal_distribution object. |
The mode.
Computes the probability density function.
The PDF for a normal distribution is given as .
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(normal_distribution), | intent(in) | :: | this |
The normal_distribution object. |
||
real(kind=real64), | intent(in) | :: | x |
The value at which to evaluate the function. |
The value of the function.
Standardizes the normal distribution to a mean of 0 and a standard deviation of 1.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(normal_distribution), | intent(inout) | :: | this |
The normal_distribution object. |
Computes the standardized variable for the distribution.
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(normal_distribution), | intent(in) | :: | this |
The normal_distribution object. |
The variance.