Skip to main content

Kernel

Trait Kernel 

Source
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.

Required Methods§

Source

fn eval(&self, a: &[f64], b: &[f64]) -> f64

Evaluate the kernel function k(a, b).

Provided Methods§

Source

fn name(&self) -> &str

Human-readable kernel name (for Debug output).

Implementors§