[][src]Function r_stats::geometric_pdf

pub fn geometric_pdf(x: f64, p: f64, give_log: bool) -> f64

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

If give_log is true, the natural logarithm of the value will be returned, with potentially higher numerical accuracy than calling .ln() on the result.