Struct criterion_stats::univariate::kde::Kde [−][src]
Univariate kernel density estimator
Implementations
impl<'a, A, K> Kde<'a, A, K> where
A: 'a + Float,
K: Kernel<A>,
[src]
A: 'a + Float,
K: Kernel<A>,
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,
A: RefUnwindSafe,
K: RefUnwindSafe,
impl<'a, A, K> Send for Kde<'a, A, K> where
K: Send,
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,
A: Unpin,
K: Unpin,
impl<'a, A, K> UnwindSafe for Kde<'a, A, K> where
A: RefUnwindSafe + UnwindSafe,
K: UnwindSafe,
A: RefUnwindSafe + UnwindSafe,
K: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,