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
Implementors
impl Kernel for Exponential
impl Kernel for HyperTan
impl Kernel for Linear
impl Kernel for Multiquadric
impl Kernel for Polynomial
impl Kernel for RationalQuadratic
impl Kernel for SquaredExp
impl<T, U> Kernel for KernelProd<T, U>where
T: Kernel,
U: Kernel,
Computes the product of the two associated kernels.
impl<T, U> Kernel for KernelSum<T, U>where
T: Kernel,
U: Kernel,
Computes the sum of the two associated kernels.