[][src]Function r_stats::geometric_quantile

pub fn geometric_quantile(
    p: f64,
    prob: f64,
    lower_tail: bool,
    log_p: bool
) -> f64

Evaluate the quantile function of the geometric distribution with trial probability prob at probability p. P(X=x) = p(1-p)^x.

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().