pub trait Kernel {
    fn kernel(&self, x1: &[f64], x2: &[f64]) -> f64;
}
Expand description

The Kernel trait

Requires a function mapping two vectors to a scalar.

Required Methods

The kernel function.

Takes two equal length slices and returns a scalar.

Implementors

Computes the product of the two associated kernels.

Computes the sum of the two associated kernels.