Percent point function/quantile function for log-logistic distribution.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | p |
probability between 0.0 - 1.0 |
||
| real(kind=wp), | intent(in) | :: | alpha |
distribution log-scale |
||
| real(kind=wp), | intent(in) | :: | beta |
distribution shape |
||
| real(kind=wp), | intent(in) | :: | loc |
distribution log-location |
elemental function f_dst_llogistic_ppf_core(p, alpha, beta, loc) result(x) ! ==== Description !! Percent point function/quantile function for log-logistic distribution. ! ==== Declarations real(wp), intent(in) :: p !! probability between 0.0 - 1.0 real(wp), intent(in) :: alpha !! distribution log-scale real(wp), intent(in) :: beta !! distribution shape real(wp), intent(in) :: loc !! distribution log-location real(wp) :: x ! ==== Instructions ! calculate position based on probability (log-alpha inversion) x = exp(loc + (alpha / beta) * log(p / (1.0_wp - p))) end function f_dst_llogistic_ppf_core