pub enum BinRule {
Count(usize),
Width(f64),
Sturges,
FreedmanDiaconis,
Scott,
}Expand description
How to choose the number/width of histogram bins.
Variants§
Count(usize)
A fixed number of equal-width bins.
Width(f64)
A fixed bin width (bin count derived from the data range).
Sturges
Sturges’ rule: ceil(log2(n)) + 1.
FreedmanDiaconis
Freedman–Diaconis rule: width = 2 * IQR * n^(-1/3).
Scott
Scott’s rule: width = 3.49 * std * n^(-1/3).
Trait Implementations§
impl Copy for BinRule
impl StructuralPartialEq for BinRule
Auto Trait Implementations§
impl Freeze for BinRule
impl RefUnwindSafe for BinRule
impl Send for BinRule
impl Sync for BinRule
impl Unpin for BinRule
impl UnsafeUnpin for BinRule
impl UnwindSafe for BinRule
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