Skip to main content

stereo_measurements

Function stereo_measurements 

Source
pub fn stereo_measurements(
    left: &[f32],
    right: &[f32],
) -> Result<StereoMeasurements>
Expand description

Statistics of equal-length stereo channels; no allocation or PCM modification. Requires finite samples, including constant/silent inputs. A two-pass, compensated f64 scan avoids raw-moment variance cancellation under large DC. Power is the same unweighted mean-square concept as Audio::mean_square; accumulation order/compensation can change last bits. Pearson uses platform sqrt and is report-only; compare results numerically, not as portable bytes.