rbf_kernel_fast

Function rbf_kernel_fast 

Source
pub unsafe fn rbf_kernel_fast(x: &[f64], y: &[f64], gamma: f64) -> f64
Expand description

Fast exponential computation for RBF kernels

Computes exp(-gamma * ||x - y||^2) for kernel matrices

ยงSafety

  • Input and output slices must be properly sized
  • gamma must be a valid f64 value