pub trait RegKernel {
// Required method
fn eval(&self, x: f64, xi: f64) -> f64;
}Expand description
Trait for non-parametric regression kernels of the form $$ K_h(x, x’) = D\left(\frac{|x-x’|}{h}\right) $$
pub trait RegKernel {
// Required method
fn eval(&self, x: f64, xi: f64) -> f64;
}Trait for non-parametric regression kernels of the form $$ K_h(x, x’) = D\left(\frac{|x-x’|}{h}\right) $$