[−][src]Function r_stats::neg_binomial_pdf
pub fn neg_binomial_pdf(x: f64, size: f64, prob: f64, give_log: bool) -> f64
Evaluate the probability density function of the negative binomial distribution. If there is
prob
probability of successin a Bernoulli trial, and we perform trials until we see size
successes, then this function returns the probability of seeing x
failures in those trials.
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.