ndhistogram

Trait FillWith

Source
pub trait FillWith<D> {
    // Required method
    fn fill_with(&mut self, value: D);
}
Expand description

Fill a histogram bin value with some data.

Fill a histogram with some value. This trait has a blanket implementation for AddAssign. In the case of primitive histogram values, this is equivalent to a weighted fill.

Required Methods§

Source

fn fill_with(&mut self, value: D)

Fill this value with some data. For a simple number type means adding the weight.

Implementors§

Source§

impl<D> FillWith<&D> for D
where for<'a> Self: AddAssign<&'a D>,

Source§

impl<D> FillWith<D> for D
where for<'a> Self: AddAssign<D>,

Source§

impl<T, C, O> FillWith<T> for Mean<T, O, C>
where T: Copy + AddAssign + Mul<Output = T>, C: AddAssign + One,

Source§

impl<T, W> FillWith<W> for Sum<T>
where T: FillWith<W> + Copy, W: Copy,

Source§

impl<T, W> FillWith<W> for WeightedSum<T>
where T: FillWith<W> + Copy, W: Mul<Output = W> + Copy,