pub trait Kernel {
type Param;
// Required method
fn new(location: Self::Param, std: Self::Param) -> Self;
}Expand description
A single kernel of a kernel density estimator.
Note that it does not directly correspond to the mathematical definition,
as for example, it is responsible for its own shift and scaling.
This is useful for discrete kernels which do not normally have a bandwidth parameter h.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.