Trait net_ensembles::sampling::histogram::HistogramCombine
source · [−]pub trait HistogramCombine: Sized {
fn encapsulating_hist<S>(hists: &[S]) -> Result<Self, HistErrors>
where
S: Borrow<Self>;
fn align<S>(&self, right: S) -> Result<usize, HistErrors>
where
S: Borrow<Self>;
}
Expand description
Required Methods
sourcefn encapsulating_hist<S>(hists: &[S]) -> Result<Self, HistErrors>where
S: Borrow<Self>,
fn encapsulating_hist<S>(hists: &[S]) -> Result<Self, HistErrors>where
S: Borrow<Self>,
Create a histogram, which encapsulates the histograms passed
possible errors
- bin size of histograms is unequal
- bins do not align
sourcefn align<S>(&self, right: S) -> Result<usize, HistErrors>where
S: Borrow<Self>,
fn align<S>(&self, right: S) -> Result<usize, HistErrors>where
S: Borrow<Self>,
Get bin difference between histograms
- index of bin of self corresponding to the leftest bin of
right