Struct criterion_stats::univariate::kde::Kde[][src]

pub struct Kde<'a, A, K> where
    A: 'a + Float,
    K: Kernel<A>, 
{ /* fields omitted */ }

Univariate kernel density estimator

Implementations

impl<'a, A, K> Kde<'a, A, K> where
    A: 'a + Float,
    K: Kernel<A>, 
[src]

pub fn new(sample: &'a Sample<A>, kernel: K, bw: Bandwidth<A>) -> Kde<'a, A, K>[src]

Creates a new kernel density estimator from the sample, using a kernel and estimating the bandwidth using the method bw

pub fn bandwidth(&self) -> A[src]

Returns the bandwidth used by the estimator

pub fn map(&self, xs: &[A]) -> Box<[A]>[src]

Maps the KDE over xs

  • Multihreaded

pub fn estimate(&self, x: A) -> A[src]

Estimates the probability density of x

Auto Trait Implementations

impl<'a, A, K> RefUnwindSafe for Kde<'a, A, K> where
    A: RefUnwindSafe,
    K: RefUnwindSafe

impl<'a, A, K> Send for Kde<'a, A, K> where
    K: Send

impl<'a, A, K> Sync for Kde<'a, A, K>

impl<'a, A, K> Unpin for Kde<'a, A, K> where
    A: Unpin,
    K: Unpin

impl<'a, A, K> UnwindSafe for Kde<'a, A, K> where
    A: RefUnwindSafe + UnwindSafe,
    K: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.