pub struct KernelDensityEstimator<B, K> { /* private fields */ }
Expand description
Representation of a kernel density estimate with custom bandwith selector and kernel function.
Implementations
sourceimpl<B, K> KernelDensityEstimator<B, K>where
B: Bandwidth,
K: Kernel,
impl<B, K> KernelDensityEstimator<B, K>where
B: Bandwidth,
K: Kernel,
sourcepub fn new<T>(observations: T, bandwidth: B, kernel: K) -> Selfwhere
T: Into<Vec<f32>>,
pub fn new<T>(observations: T, bandwidth: B, kernel: K) -> Selfwhere
T: Into<Vec<f32>>,
Returns an initialized KernelDensityEstimator
.
sourcepub fn pdf(&self, dataset: &[f32]) -> Vec<f32>
pub fn pdf(&self, dataset: &[f32]) -> Vec<f32>
Returns the estimated probability density function evaluated at the points in dataset
.
Trait Implementations
sourceimpl<B: Clone, K: Clone> Clone for KernelDensityEstimator<B, K>
impl<B: Clone, K: Clone> Clone for KernelDensityEstimator<B, K>
sourcefn clone(&self) -> KernelDensityEstimator<B, K>
fn clone(&self) -> KernelDensityEstimator<B, K>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl<B, K> RefUnwindSafe for KernelDensityEstimator<B, K>where
B: RefUnwindSafe,
K: RefUnwindSafe,
impl<B, K> Send for KernelDensityEstimator<B, K>where
B: Send,
K: Send,
impl<B, K> Sync for KernelDensityEstimator<B, K>where
B: Sync,
K: Sync,
impl<B, K> Unpin for KernelDensityEstimator<B, K>where
B: Unpin,
K: Unpin,
impl<B, K> UnwindSafe for KernelDensityEstimator<B, K>where
B: UnwindSafe,
K: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more