Struct rv::data::CategoricalSuffStat [−][src]
Fields
n: usize
counts: Vec<f64>
Methods
impl CategoricalSuffStat
[src]
impl CategoricalSuffStat
Trait Implementations
impl Debug for CategoricalSuffStat
[src]
impl Debug for CategoricalSuffStat
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for CategoricalSuffStat
[src]
impl Clone for CategoricalSuffStat
fn clone(&self) -> CategoricalSuffStat
[src]
fn clone(&self) -> CategoricalSuffStat
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<X: CategoricalDatum> SuffStat<X> for CategoricalSuffStat
[src]
impl<X: CategoricalDatum> SuffStat<X> for CategoricalSuffStat
fn n(&self) -> usize
[src]
fn n(&self) -> usize
Returns the number of observations
fn observe(&mut self, x: &X)
[src]
fn observe(&mut self, x: &X)
Assimilate the datum x
into the statistic
fn forget(&mut self, x: &X)
[src]
fn forget(&mut self, x: &X)
Remove the datum x
from the statistic
fn observe_many(&mut self, xs: &[X])
[src]
fn observe_many(&mut self, xs: &[X])
Assimilate several observations
fn forget_many(&mut self, xs: &[X])
[src]
fn forget_many(&mut self, xs: &[X])
Forget several observations
Auto Trait Implementations
impl Send for CategoricalSuffStat
impl Send for CategoricalSuffStat
impl Sync for CategoricalSuffStat
impl Sync for CategoricalSuffStat