pub fn scale_phase_to_pi(data: &mut [f64])Expand description
Scale phase data to [-pi, pi] range in-place.
If data is already approximately in [-pi, pi] (within 10% tolerance), leaves it unchanged. Otherwise linearly maps from [min, max] to [-pi, pi]. NaN/Inf values are replaced with 0.