pub struct Width { /* private fields */ }
Expand description
An online algorithm for calculating mean and standard deviation with binning and a fixed bin width.
Resources
The memory requirement is effectively constant, growing only ever so slightly with each new bin.
Implementations§
source§impl Width
impl Width
sourcepub fn new(width: NonZeroU32) -> Self
pub fn new(width: NonZeroU32) -> Self
Returns a new and empty data structure with width
bin width.
sourcepub const fn width(&self) -> NonZeroU32
pub const fn width(&self) -> NonZeroU32
Returns the bin width.
Trait Implementations§
source§impl Binned for Width
impl Binned for Width
Auto Trait Implementations§
impl RefUnwindSafe for Width
impl Send for Width
impl Sync for Width
impl Unpin for Width
impl UnwindSafe for Width
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more