pub struct KernelDensityEstimator {
pub data: Vec<f64>,
pub bandwidth: f64,
}Expand description
Kernel density estimator using a Gaussian kernel.
For a dataset x_1, …, x_n, the KDE at point x is: f̂(x) = (1/(n·h)) Σ_i K((x - x_i)/h) where K is the standard Gaussian kernel.
Fields§
§data: Vec<f64>Training data points.
bandwidth: f64Bandwidth h (Silverman’s rule of thumb by default).
Implementations§
Auto Trait Implementations§
impl Freeze for KernelDensityEstimator
impl RefUnwindSafe for KernelDensityEstimator
impl Send for KernelDensityEstimator
impl Sync for KernelDensityEstimator
impl Unpin for KernelDensityEstimator
impl UnsafeUnpin for KernelDensityEstimator
impl UnwindSafe for KernelDensityEstimator
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