pub struct Hypergeometric {
pub total: u64,
pub successes: u64,
pub draws: u64,
}Expand description
The hypergeometric distribution of the successes in draws draws without replacement from a
population of total items of which successes are successes (SciPy’s
hypergeom(M=total, n=successes, N=draws)).
Fields§
§total: u64§successes: u64§draws: u64Implementations§
Trait Implementations§
Source§impl Clone for Hypergeometric
impl Clone for Hypergeometric
impl Copy for Hypergeometric
Source§impl Debug for Hypergeometric
impl Debug for Hypergeometric
Source§impl DiscreteDistribution for Hypergeometric
impl DiscreteDistribution for Hypergeometric
Source§fn cdf(&self, k: i64) -> f64
fn cdf(&self, k: i64) -> f64
By summing the probability mass from the nearer end of the support.
fn pmf(&self, k: i64) -> f64
fn logpmf(&self, k: i64) -> f64
fn sf(&self, k: i64) -> f64
fn support(&self) -> (i64, i64)
fn mean(&self) -> f64
fn variance(&self) -> f64
fn skewness(&self) -> f64
fn excess_kurtosis(&self) -> f64
fn log_likelihood(&self, data: &[i64]) -> f64
fn sample<U: UniformGenerator>(&self, rng: &mut U) -> i64where
Self: Sized,
Source§impl PartialEq for Hypergeometric
impl PartialEq for Hypergeometric
impl StructuralPartialEq for Hypergeometric
Auto Trait Implementations§
impl Freeze for Hypergeometric
impl RefUnwindSafe for Hypergeometric
impl Send for Hypergeometric
impl Sync for Hypergeometric
impl Unpin for Hypergeometric
impl UnsafeUnpin for Hypergeometric
impl UnwindSafe for Hypergeometric
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more