pub trait Kernel {
    fn pdf(&self, x: f32) -> f32;
}
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

Returns the probability density function for a value x.

Implementors