pub fn unwrap(phase: &[f64]) -> Vec<f64>
Removes jumps of more than π between consecutive phases by adding multiples of 2π (NumPy’s unwrap).
unwrap