f_dst_llogistic_ppf_core Function

public elemental function f_dst_llogistic_ppf_core(p, alpha, beta, loc) result(x)

Percent point function/quantile function for log-logistic distribution.

Arguments

Type IntentOptional 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

Return Value real(kind=wp)


Called by

proc~~f_dst_llogistic_ppf_core~~CalledByGraph proc~f_dst_llogistic_ppf_core f_dst_llogistic_ppf_core proc~f_dst_llogistic_ppf f_dst_llogistic_ppf proc~f_dst_llogistic_ppf->proc~f_dst_llogistic_ppf_core interface~fsml_llogistic_ppf fsml_llogistic_ppf interface~fsml_llogistic_ppf->proc~f_dst_llogistic_ppf

Source Code

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