pub struct Poisson {
pub lambda: f64,
}Expand description
The Poisson distribution (SciPy’s poisson(mu=λ)).
Fields§
§lambda: f64Implementations§
Trait Implementations§
impl Copy for Poisson
Source§impl DiscreteDistribution for Poisson
impl DiscreteDistribution for Poisson
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,
impl StructuralPartialEq for Poisson
Auto Trait Implementations§
impl Freeze for Poisson
impl RefUnwindSafe for Poisson
impl Send for Poisson
impl Sync for Poisson
impl Unpin for Poisson
impl UnsafeUnpin for Poisson
impl UnwindSafe for Poisson
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