pub struct Poisson { /* private fields */ }
Expand description
Implementations§
Trait Implementations§
Source§impl Discrete<u64, f64> for Poisson
impl Discrete<u64, f64> for Poisson
Source§impl DiscreteCDF<u64, f64> for Poisson
impl DiscreteCDF<u64, f64> for Poisson
Source§fn cdf(&self, x: u64) -> f64
fn cdf(&self, x: u64) -> f64
Calculates the cumulative distribution function for the poisson
distribution at x
§Formula
P(x + 1, λ)
where λ
is the rate and P
is the upper regularized gamma function
Source§fn sf(&self, x: u64) -> f64
fn sf(&self, x: u64) -> f64
Calculates the survival function for the poisson
distribution at x
§Formula
P(x + 1, λ)
where λ
is the rate and P
is the lower regularized gamma function
Source§fn inverse_cdf(&self, p: T) -> K
fn inverse_cdf(&self, p: T) -> K
Source§impl Distribution<f64> for Poisson
Available on crate feature rand
only.
impl Distribution<f64> for Poisson
rand
only.Source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> f64
Generates one sample from the Poisson distribution either by Knuth’s method if lambda < 30.0 or Rejection method PA by A. C. Atkinson from the Journal of the Royal Statistical Society Series C (Applied Statistics) Vol. 28 No. 1. (1979) pp. 29 - 35 otherwise
Source§fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
T
, using rng
as
the source of randomness. Read moreSource§impl Distribution<f64> for Poisson
impl Distribution<f64> for Poisson
Source§impl Distribution<u64> for Poisson
Available on crate feature rand
only.
impl Distribution<u64> for Poisson
rand
only.Source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> u64
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> u64
Generates one sample from the Poisson distribution either by Knuth’s method if lambda < 30.0 or Rejection method PA by A. C. Atkinson from the Journal of the Royal Statistical Society Series C (Applied Statistics) Vol. 28 No. 1. (1979) pp. 29 - 35 otherwise
Source§fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
T
, using rng
as
the source of randomness. Read moreimpl Copy for Poisson
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.