Skip to main content

rbf_kernel

Function rbf_kernel 

Source
pub fn rbf_kernel<T: KernelScalar>(
    m: usize,
    n: usize,
    k: usize,
    x: &[T],
    y: Option<&[T]>,
    d: &mut [T],
    gamma: T,
) -> Result<()>
Expand description

RBF kernel K(x, y) = exp(-γ · ‖x − y‖²) (row-major).