[−][src]Function r_stats::gamma_quantile
pub fn gamma_quantile(
p: f64,
shape: f64,
scale: f64,
lower_tail: bool,
log_p: bool
) -> f64
Evaluate the quantile function of the gamma distribution with shape
and scale
at
probability p
.
The shape is sometimes labelled alpha
, and the scale is sometimes parameterised as
(1 / lambda
).
If lower_tail
is true, then p
is the integral from -∞
to x
, else it is the integral
from x
to ∞
. "Usual" behaviour corresponds to true
.
If log_p
is true, the natural logarithm of the value will be returned, with potentially
higher numerical accuracy than calling .ln()
.