pub enum Bandwidth {
Silverman,
Fixed(Vec<f64>),
}Expand description
Bandwidth rule for KdeSampler::fit.
Variants§
Silverman
Silverman’s rule per dimension,
h = σ (4 / (d + 2) / n)^(1 / (d + 4)) with the unbiased
per-dimension standard deviation σ. Zero-variance dimensions are
an Error (a zero bandwidth is a delta spike, never a density);
use Bandwidth::Fixed with an explicit width instead.
Fixed(Vec<f64>)
Caller-supplied per-dimension widths (all finite and positive).
Trait Implementations§
impl StructuralPartialEq for Bandwidth
Auto Trait Implementations§
impl Freeze for Bandwidth
impl RefUnwindSafe for Bandwidth
impl Send for Bandwidth
impl Sync for Bandwidth
impl Unpin for Bandwidth
impl UnsafeUnpin for Bandwidth
impl UnwindSafe for Bandwidth
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