Skip to main content

total_variation

Function total_variation 

Source
pub fn total_variation(u: &[f64]) -> f64
Expand description

Computes the total variation TV(u) = Σ |u[i+1] - u[i]|.