fsml_gamma_ppf Interface

public interface fsml_gamma_ppf

Percent point function/quantile function for gamma distribution. Procedure uses bisection method. p should be between 0.0 and 1.0.

Calls

interface~~fsml_gamma_ppf~~CallsGraph interface~fsml_gamma_ppf fsml_gamma_ppf proc~f_dst_gamma_ppf f_dst_gamma_ppf interface~fsml_gamma_ppf->proc~f_dst_gamma_ppf proc~f_dst_gamma_ppf_core f_dst_gamma_ppf_core proc~f_dst_gamma_ppf->proc~f_dst_gamma_ppf_core proc~s_err_print s_err_print proc~f_dst_gamma_ppf->proc~s_err_print proc~s_err_warn s_err_warn proc~f_dst_gamma_ppf->proc~s_err_warn proc~f_dst_gamma_cdf_core f_dst_gamma_cdf_core proc~f_dst_gamma_ppf_core->proc~f_dst_gamma_cdf_core proc~f_utl_r2c f_utl_r2c proc~s_err_print->proc~f_utl_r2c proc~f_dst_gammai_core f_dst_gammai_core proc~f_dst_gamma_cdf_core->proc~f_dst_gammai_core

Module Procedures

public impure function f_dst_gamma_ppf(p, alpha, beta, loc) result(x)

Impure wrapper function for f_dst_gamma_ppf_core. Handles optional arguments and invalid values for arguments.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: p

probability between 0.0 - 1.0

real(kind=wp), intent(in), optional :: alpha

shape parameter

real(kind=wp), intent(in), optional :: beta

scale parameter

real(kind=wp), intent(in), optional :: loc

location parameter

Return Value real(kind=wp)

sample position