[−][src]Struct rv::data::PoissonSuffStat
Poisson sufficient statistic.
Holds the number of observarions and their sum.
Methods
impl PoissonSuffStat
[src]
pub fn new() -> Self
[src]
Create a new empty SuffStat
pub fn n(&self) -> usize
[src]
Get the number of observations
pub fn sum(&self) -> f64
[src]
Get the sum of all observations
pub fn sum_log_fact(&self) -> f64
[src]
Trait Implementations
impl SuffStat<u8> for PoissonSuffStat
[src]
fn n(&self) -> usize
[src]
fn observe(&mut self, x: &u8)
[src]
fn forget(&mut self, x: &u8)
[src]
fn observe_many(&mut self, xs: &[X])
[src]
fn forget_many(&mut self, xs: &[X])
[src]
impl SuffStat<u16> for PoissonSuffStat
[src]
fn n(&self) -> usize
[src]
fn observe(&mut self, x: &u16)
[src]
fn forget(&mut self, x: &u16)
[src]
fn observe_many(&mut self, xs: &[X])
[src]
fn forget_many(&mut self, xs: &[X])
[src]
impl SuffStat<u32> for PoissonSuffStat
[src]
fn n(&self) -> usize
[src]
fn observe(&mut self, x: &u32)
[src]
fn forget(&mut self, x: &u32)
[src]
fn observe_many(&mut self, xs: &[X])
[src]
fn forget_many(&mut self, xs: &[X])
[src]
impl<'a> Into<DataOrSuffStat<'a, u8, Poisson>> for &'a PoissonSuffStat
[src]
fn into(self) -> DataOrSuffStat<'a, u8, Poisson>
[src]
impl<'a> Into<DataOrSuffStat<'a, u16, Poisson>> for &'a PoissonSuffStat
[src]
fn into(self) -> DataOrSuffStat<'a, u16, Poisson>
[src]
impl<'a> Into<DataOrSuffStat<'a, u32, Poisson>> for &'a PoissonSuffStat
[src]
fn into(self) -> DataOrSuffStat<'a, u32, Poisson>
[src]
impl Clone for PoissonSuffStat
[src]
fn clone(&self) -> PoissonSuffStat
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for PoissonSuffStat
[src]
impl PartialEq<PoissonSuffStat> for PoissonSuffStat
[src]
fn eq(&self, other: &PoissonSuffStat) -> bool
[src]
fn ne(&self, other: &PoissonSuffStat) -> bool
[src]
impl PartialOrd<PoissonSuffStat> for PoissonSuffStat
[src]
fn partial_cmp(&self, other: &PoissonSuffStat) -> Option<Ordering>
[src]
fn lt(&self, other: &PoissonSuffStat) -> bool
[src]
fn le(&self, other: &PoissonSuffStat) -> bool
[src]
fn gt(&self, other: &PoissonSuffStat) -> bool
[src]
fn ge(&self, other: &PoissonSuffStat) -> bool
[src]
impl Debug for PoissonSuffStat
[src]
Auto Trait Implementations
impl Send for PoissonSuffStat
impl Sync for PoissonSuffStat
impl Unpin for PoissonSuffStat
impl UnwindSafe for PoissonSuffStat
impl RefUnwindSafe for PoissonSuffStat
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,