pub enum BandwidthMethod {
Silverman,
Scott,
Manual(f64),
}Expand description
Bandwidth selection method for kernel density estimation.
Variants§
Silverman
Silverman’s rule of thumb: h = 0.9 * min(σ, IQR/1.34) * n^(-1/5). Robust to outliers and multimodal distributions.
Reference: Silverman (1986), “Density Estimation for Statistics and Data Analysis”
Scott
Scott’s rule: h = 1.06 * σ * n^(-1/5). Slightly smoother, assumes approximately normal data.
Reference: Scott (1992), “Multivariate Density Estimation”
Manual(f64)
Manual bandwidth specification.
Trait Implementations§
Source§impl Clone for BandwidthMethod
impl Clone for BandwidthMethod
Source§fn clone(&self) -> BandwidthMethod
fn clone(&self) -> BandwidthMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BandwidthMethod
impl Debug for BandwidthMethod
impl Copy for BandwidthMethod
Auto Trait Implementations§
impl Freeze for BandwidthMethod
impl RefUnwindSafe for BandwidthMethod
impl Send for BandwidthMethod
impl Sync for BandwidthMethod
impl Unpin for BandwidthMethod
impl UnsafeUnpin for BandwidthMethod
impl UnwindSafe for BandwidthMethod
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