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 log-normal distribution is given as
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(log_normal_distribution), | intent(in) | :: | this |
The log_normal_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(log_normal_distribution), | intent(in) | :: | this |
The log_normal_distribution object. |
The defined range of the probability distributions [0, infinity). As using a value of infinity may cause issue, this routine returns huge(0.0d0) instead.
Computes the log-normal log lower tail using the normal log-CDF.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(log_normal_distribution), | intent(in) | :: | this |
Law with finite log-mean and finite, positive log-standard deviation. |
||
| real(kind=real64), | intent(in) | :: | x |
Evaluation point in observation space. |
Log CDF; x <= 0 gives -infinity, invalid inputs give NaN.
Computes a log-normal log density from the underlying normal log density.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(log_normal_distribution), | intent(in) | :: | this |
Law with finite log-mean and finite, positive log-standard deviation. |
||
| real(kind=real64), | intent(in) | :: | x |
Evaluation point in observation space, not log space. |
Log density; x <= 0 gives -infinity, invalid parameters or NaN x NaN.
Computes the log-normal log upper tail using the normal log-survival.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(log_normal_distribution), | intent(in) | :: | this |
Law with finite log-mean and finite, positive log-standard deviation. |
||
| real(kind=real64), | intent(in) | :: | x |
Evaluation point in observation space. |
Log survival probability; x <= 0 gives zero, invalid inputs give NaN.
Computes the mean of the distribution
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(log_normal_distribution), | intent(in) | :: | this |
The log_normal distribution object. |
The mean
Computes the median of the distribution
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(log_normal_distribution), | intent(in) | :: | this |
The log_normal distribution object. |
The median
Computes the mode of the distribution
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(log_normal_distribution), | intent(in) | :: | this |
The log_normal distribution object. |
The mode
Computes the probability density function.
The PDF for a log-normal distribution is given as
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(log_normal_distribution), | intent(in) | :: | this |
The log_normal_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.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(log_normal_distribution), | intent(inout) | :: | this |
The log_normal_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 log-normal upper-tail probability P(X > x).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(log_normal_distribution), | intent(in) | :: | this |
Law with finite log-mean and finite, positive log-standard deviation. |
||
| real(kind=real64), | intent(in) | :: | x |
Evaluation point in observation space. |
Survival probability; x <= 0 gives one, invalid inputs give NaN.
Computes the variance of the distribution
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(log_normal_distribution), | intent(in) | :: | this |
The log_normal distribution object. |
The variance