Skip to main content

silverman_bandwidth

Function silverman_bandwidth 

Source
pub fn silverman_bandwidth(values: &[f64]) -> f64
Expand description

Silverman’s rule-of-thumb bandwidth: 1.06 · σ · n^(−1/5). Falls back to a small positive width on a degenerate (zero-variance) sample so the kernel stays well-defined.