pub enum BinMethod {
Sturges,
Scott,
FreedmanDiaconis,
}Expand description
Method for computing optimal number of histogram bins.
Variants§
Sturges
Sturges’ rule: k = ⌈log₂(n)⌉ + 1. Best for near-normal data.
Scott
Scott’s rule: h = 3.49·σ·n^(-1/3). Width-based.
FreedmanDiaconis
Freedman-Diaconis rule: h = 2·IQR·n^(-1/3). Robust to outliers.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BinMethod
impl RefUnwindSafe for BinMethod
impl Send for BinMethod
impl Sync for BinMethod
impl Unpin for BinMethod
impl UnsafeUnpin for BinMethod
impl UnwindSafe for BinMethod
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