Trait net_ensembles::sampling::Histogram [−][src]
pub trait Histogram {
fn count_multiple_index(
&mut self,
index: usize,
count: usize
) -> Result<(), HistErrors>;
fn hist(&self) -> &Vec<usize, Global>;
fn reset(&mut self);
fn count_index(&mut self, index: usize) -> Result<(), HistErrors> { ... }
fn bin_count(&self) -> usize { ... }
fn any_bin_zero(&self) -> bool { ... }
}
Expand description
Implements histogram
- anything that implements
Histogram
should also implement the traitHistogramVal
Required methods
fn count_multiple_index(
&mut self,
index: usize,
count: usize
) -> Result<(), HistErrors>
fn count_multiple_index(
&mut self,
index: usize,
count: usize
) -> Result<(), HistErrors>
Provided methods
fn count_index(&mut self, index: usize) -> Result<(), HistErrors>
fn count_index(&mut self, index: usize) -> Result<(), HistErrors>
fn any_bin_zero(&self) -> bool
fn any_bin_zero(&self) -> bool
check if any bin was not hit yet