[−][src]Struct rv::data::GaussianSuffStat
Gaussian sufficient statistic.
Holds the number of observations, their sum, and the sum of their squared values.
Methods
impl GaussianSuffStat
[src]
pub fn new() -> Self
[src]
pub fn n(&self) -> usize
[src]
Get the number of observations
pub fn sum_x(&self) -> f64
[src]
Get the sum of observations
pub fn sum_x_sq(&self) -> f64
[src]
Get the sum of squared observations
Trait Implementations
impl SuffStat<f32> for GaussianSuffStat
[src]
fn n(&self) -> usize
[src]
fn observe(&mut self, x: &f32)
[src]
fn forget(&mut self, x: &f32)
[src]
fn observe_many(&mut self, xs: &[X])
[src]
fn forget_many(&mut self, xs: &[X])
[src]
impl SuffStat<f64> for GaussianSuffStat
[src]
fn n(&self) -> usize
[src]
fn observe(&mut self, x: &f64)
[src]
fn forget(&mut self, x: &f64)
[src]
fn observe_many(&mut self, xs: &[X])
[src]
fn forget_many(&mut self, xs: &[X])
[src]
impl<'a> Into<DataOrSuffStat<'a, f32, Gaussian>> for &'a GaussianSuffStat
[src]
fn into(self) -> DataOrSuffStat<'a, f32, Gaussian>
[src]
impl<'a> Into<DataOrSuffStat<'a, f64, Gaussian>> for &'a GaussianSuffStat
[src]
fn into(self) -> DataOrSuffStat<'a, f64, Gaussian>
[src]
impl Clone for GaussianSuffStat
[src]
fn clone(&self) -> GaussianSuffStat
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for GaussianSuffStat
[src]
impl PartialEq<GaussianSuffStat> for GaussianSuffStat
[src]
fn eq(&self, other: &GaussianSuffStat) -> bool
[src]
fn ne(&self, other: &GaussianSuffStat) -> bool
[src]
impl PartialOrd<GaussianSuffStat> for GaussianSuffStat
[src]
fn partial_cmp(&self, other: &GaussianSuffStat) -> Option<Ordering>
[src]
fn lt(&self, other: &GaussianSuffStat) -> bool
[src]
fn le(&self, other: &GaussianSuffStat) -> bool
[src]
fn gt(&self, other: &GaussianSuffStat) -> bool
[src]
fn ge(&self, other: &GaussianSuffStat) -> bool
[src]
impl Debug for GaussianSuffStat
[src]
Auto Trait Implementations
impl Send for GaussianSuffStat
impl Sync for GaussianSuffStat
impl Unpin for GaussianSuffStat
impl UnwindSafe for GaussianSuffStat
impl RefUnwindSafe for GaussianSuffStat
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>,