pub trait Kernel: Send + Sync {
// Required method
fn eval(&self, a: &[f64], b: &[f64]) -> f64;
// Provided method
fn name(&self) -> &str { ... }
}Expand description
Object-safe kernel function for KRLS and other kernel methods.
A kernel computes an inner product in a (possibly infinite-dimensional) feature space without explicitly computing the feature map.