Trait net_ensembles::sampling::histogram::HistogramCombine[][src]

pub trait HistogramCombine {
    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

Create a histogram, which encapsulates the histograms passed

possible errors

  • bin size of histograms is unequal
  • bins do not align

Get bin difference between histograms

  • index of bin of self corresponding to the leftest bin of right

Implementors