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