Skip to main content

relative_l2

Function relative_l2 

Source
pub fn relative_l2(a: &[f64], b: &[f64]) -> f64
Expand description

Relative L2 distance ||a - b|| / max(||b||, eps) — the natural scale-free measure of how closely a fitted function tracks a reference function evaluated on the same grid.