[][src]Function r_stats::hypergeometric_pdf

pub fn hypergeometric_pdf(
    x: f64,
    succ: f64,
    fail: f64,
    samples: f64,
    give_log: bool
) -> f64

Evaluate the probability density function of the hypergeometric distribution. If samples samples were taken at random from a collection of succ successes and fail failures, then this function evaluates the chance of x successes being in the sample.

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.