[−][src]Function r_stats::hypergeometric_cdf
pub fn hypergeometric_cdf(
x: f64,
succ: f64,
fail: f64,
samples: f64,
lower_tail: bool,
log_p: bool
) -> f64
Evaluate the culmulative distribution 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 lower_tail
is true, the integral from -∞
to x
is evaluated, else the
integral from x
to ∞
is evaluated instead. "Usual" behaviour corresponds to
true
. Using lower_tail = false
gives higher numerical accuracy than performing the
calculation 1 - result
on lower_tail = true
(when the result is close to 1).
If log_p
is true, the natural logarithm of the value will be returned, with potentially
higher numerical accuracy than calling .ln()
on the result.