pub(super) fn correct_global_offset(phase: &mut [f64], mask: &[u8])Expand description
Subtract the median wrap count over the mask, so the result stays centred near
the input range. Mirrors ROMEO’s correct_global_offset.
Shared with unwrap_prelude, which has the same freedom
in its output and resolves it the same way.