Skip to main content

kernel_value

Function kernel_value 

Source
pub fn kernel_value(r: f64, params: &SphKernelParams, kernel: SphKernel) -> f64
Expand description

Evaluate the smoothing kernel W(r, h) for a given kernel type.

Returns 0 when r >= h (compact support).