pub struct KdeSampler { /* private fields */ }Expand description
Axis-aligned Gaussian KDE over n samples in d dimensions.
Implementations§
Source§impl KdeSampler
impl KdeSampler
Sourcepub fn fit(samples: &[Vec<f64>], bandwidth: Bandwidth) -> Result<Self>
pub fn fit(samples: &[Vec<f64>], bandwidth: Bandwidth) -> Result<Self>
Fit a KDE over samples (non-empty, rectangular, all finite).
Sourcepub fn bandwidths(&self) -> &[f64]
pub fn bandwidths(&self) -> &[f64]
Fitted per-dimension bandwidths.
Trait Implementations§
Source§impl Clone for KdeSampler
impl Clone for KdeSampler
Source§fn clone(&self) -> KdeSampler
fn clone(&self) -> KdeSampler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KdeSampler
impl Debug for KdeSampler
Source§impl PartialEq for KdeSampler
impl PartialEq for KdeSampler
impl StructuralPartialEq for KdeSampler
Auto Trait Implementations§
impl Freeze for KdeSampler
impl RefUnwindSafe for KdeSampler
impl Send for KdeSampler
impl Sync for KdeSampler
impl Unpin for KdeSampler
impl UnsafeUnpin for KdeSampler
impl UnwindSafe for KdeSampler
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