Trait Kernel

Source
pub trait Kernel<F: KDEFloat> {
    // Required method
    fn pdf(&self, x: F) -> F;
}
Expand description

Shared behavior for kernel functions.

Well-behaved kernel functions exhibit three properties:

  1. The function is non-negative and real-valued.
  2. The function should integrate to 1.
  3. The function should be symmetrical.

Required Methods§

Source

fn pdf(&self, x: F) -> F

Returns the probability density function for a value x.

Implementors§

Source§

impl<F: KDEFloat> Kernel<F> for Cosine

Source§

impl<F: KDEFloat> Kernel<F> for Epanechnikov

Source§

impl<F: KDEFloat> Kernel<F> for Logistic

Source§

impl<F: KDEFloat> Kernel<F> for Normal

Source§

impl<F: KDEFloat> Kernel<F> for Quartic

Source§

impl<F: KDEFloat> Kernel<F> for Sigmoid

Source§

impl<F: KDEFloat> Kernel<F> for SilvermanKernel

Source§

impl<F: KDEFloat> Kernel<F> for Triangular

Source§

impl<F: KDEFloat> Kernel<F> for Tricube

Source§

impl<F: KDEFloat> Kernel<F> for Triweight

Source§

impl<F: KDEFloat> Kernel<F> for Uniform

Source§

impl<T, F> Kernel<F> for T
where T: Fn(F) -> F, F: KDEFloat,