[][src]Function r_stats::binomial_pdf

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

Evaluate the probability density function of the binomial distribution with n trials and probability of success p at 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.