Trait rusty_machine::learning::toolkit::kernel::Kernel
[−]
[src]
pub trait Kernel { fn kernel(&self, x1: &[f64], x2: &[f64]) -> f64; }
The Kernel trait
Requires a function mapping two vectors to a scalar.
Required Methods
fn kernel(&self, x1: &[f64], x2: &[f64]) -> f64
The kernel function.
Takes two equal length slices and returns a scalar.
Implementors
impl<T, U> Kernel for KernelSum<T, U> where T: Kernel, U: Kernel
impl<T, U> Kernel for KernelProd<T, U> where T: Kernel, U: Kernel
impl Kernel for Linear
impl Kernel for Polynomial
impl Kernel for SquaredExp
impl Kernel for Exponential
impl Kernel for HyperTan
impl Kernel for Multiquadric
impl Kernel for RationalQuadratic