Kernel

Trait Kernel 

Source
pub trait Kernel {
    // Required method
    fn compute(
        &self,
        vec1: &SupportVector,
        vec2: &FeatureVector,
    ) -> Result<f64, NrpsError>;
}

Required Methods§

Source

fn compute( &self, vec1: &SupportVector, vec2: &FeatureVector, ) -> Result<f64, NrpsError>

Trait Implementations§

Source§

impl Debug for dyn Kernel

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§