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§
Object Safety§
This trait is not object safe.