Trait Kernel

Source
pub trait Kernel: Debug {
    // Required method
    fn apply(&self, x_i: &Vec<f64>, x_j: &Vec<f64>) -> Result<f64, Failed>;
}
Expand description

Defines a kernel function. This is a object-safe trait.

Required Methods§

Source

fn apply(&self, x_i: &Vec<f64>, x_j: &Vec<f64>) -> Result<f64, Failed>

Apply kernel function to x_i and x_j

Implementors§