Defines a Poisson distribution.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=real64), | public | :: | occrence_rate |
The rate of occurrences. |
Computes the cumulative distribution function.
The CDF for the Poisson distribution is given as .
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(poisson_distribution), | intent(in) | :: | this |
The poisson_distribution object. |
||
| real(kind=real64), | intent(in) | :: | x |
The number of occurrences (). |
The value of the function.
Gets the defined range for the distribution.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(poisson_distribution), | intent(in) | :: | this |
The poisson_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 mean of the distribution.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(poisson_distribution), | intent(in) | :: | this |
The poisson_distribution object. |
The mean.
Computes the median of the distribution.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(poisson_distribution), | intent(in) | :: | this |
The poisson_distribution object. |
The median.
Computes the mode of the distribution.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(poisson_distribution), | intent(in) | :: | this |
The poisson_distribution object. |
The mode.
Computes the probability mass function.
The PMF for the Poisson distribution is given as .
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(poisson_distribution), | intent(in) | :: | this |
The poisson_distribution object. |
||
| real(kind=real64), | intent(in) | :: | x |
The number of occurrences (). |
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(poisson_distribution), | intent(inout) | :: | this |
The poisson_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.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(poisson_distribution), | intent(in) | :: | this |
The poisson_distribution object. |
The variance.