pub struct Geometric {
pub p: f64,
}Expand description
The geometric distribution of the number of trials up to the first success, k ≥ 1
(SciPy’s geom(p)).
Fields§
§p: f64Implementations§
Trait Implementations§
impl Copy for Geometric
Source§impl DiscreteDistribution for Geometric
impl DiscreteDistribution for Geometric
fn pmf(&self, k: i64) -> f64
fn cdf(&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 logpmf(&self, k: i64) -> f64
fn log_likelihood(&self, data: &[i64]) -> f64
fn sample<U: UniformGenerator>(&self, rng: &mut U) -> i64where
Self: Sized,
impl StructuralPartialEq for Geometric
Auto Trait Implementations§
impl Freeze for Geometric
impl RefUnwindSafe for Geometric
impl Send for Geometric
impl Sync for Geometric
impl Unpin for Geometric
impl UnsafeUnpin for Geometric
impl UnwindSafe for Geometric
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