Struct rv::data::GaussianSuffStat
source · pub struct GaussianSuffStat { /* private fields */ }
Expand description
Gaussian sufficient statistic.
Holds the number of observations, their sum, and the sum of their squared values.
Implementations§
source§impl GaussianSuffStat
impl GaussianSuffStat
Trait Implementations§
source§impl Clone for GaussianSuffStat
impl Clone for GaussianSuffStat
source§fn clone(&self) -> GaussianSuffStat
fn clone(&self) -> GaussianSuffStat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GaussianSuffStat
impl Debug for GaussianSuffStat
source§impl Default for GaussianSuffStat
impl Default for GaussianSuffStat
source§impl<'de> Deserialize<'de> for GaussianSuffStat
impl<'de> Deserialize<'de> for GaussianSuffStat
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&[f32]> for GaussianSuffStat
impl From<&[f32]> for GaussianSuffStat
source§impl From<&[f64]> for GaussianSuffStat
impl From<&[f64]> for GaussianSuffStat
source§impl<'a> From<&'a GaussianSuffStat> for DataOrSuffStat<'a, f32, Gaussian>
impl<'a> From<&'a GaussianSuffStat> for DataOrSuffStat<'a, f32, Gaussian>
source§fn from(stat: &'a GaussianSuffStat) -> Self
fn from(stat: &'a GaussianSuffStat) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a GaussianSuffStat> for DataOrSuffStat<'a, f64, Gaussian>
impl<'a> From<&'a GaussianSuffStat> for DataOrSuffStat<'a, f64, Gaussian>
source§fn from(stat: &'a GaussianSuffStat) -> Self
fn from(stat: &'a GaussianSuffStat) -> Self
Converts to this type from the input type.
source§impl PartialEq<GaussianSuffStat> for GaussianSuffStat
impl PartialEq<GaussianSuffStat> for GaussianSuffStat
source§fn eq(&self, other: &GaussianSuffStat) -> bool
fn eq(&self, other: &GaussianSuffStat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GaussianSuffStat
impl Serialize for GaussianSuffStat
source§impl SuffStat<f32> for GaussianSuffStat
impl SuffStat<f32> for GaussianSuffStat
source§fn observe_many(&mut self, xs: &[X])
fn observe_many(&mut self, xs: &[X])
Assimilate several observations
source§fn forget_many(&mut self, xs: &[X])
fn forget_many(&mut self, xs: &[X])
Forget several observations
source§impl SuffStat<f64> for GaussianSuffStat
impl SuffStat<f64> for GaussianSuffStat
source§fn observe_many(&mut self, xs: &[X])
fn observe_many(&mut self, xs: &[X])
Assimilate several observations
source§fn forget_many(&mut self, xs: &[X])
fn forget_many(&mut self, xs: &[X])
Forget several observations
impl StructuralPartialEq for GaussianSuffStat
Auto Trait Implementations§
impl RefUnwindSafe for GaussianSuffStat
impl Send for GaussianSuffStat
impl Sync for GaussianSuffStat
impl Unpin for GaussianSuffStat
impl UnwindSafe for GaussianSuffStat
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
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.