pub struct StereoMeasurements {
pub frames: usize,
pub correlation: Option<f64>,
pub left_mean_square: Option<f64>,
pub right_mean_square: Option<f64>,
pub mid_mean_square: Option<f64>,
pub side_mean_square: Option<f64>,
}Expand description
Unweighted stereo statistics. Power units are squared input-sample amplitude. Empty input has no power result; silence has Some(0). No width/quality verdict.
Fields§
§frames: usize§correlation: Option<f64>Mean-centered Pearson correlation in [-1, 1]. None for fewer than two frames or either constant channel, including silence. DC is removed only for this statistic; all four power measurements retain DC.
left_mean_square: Option<f64>§right_mean_square: Option<f64>§mid_mean_square: Option<f64>Mean square of M=(L+R)/2; no sqrt(2) normalization or loudness weighting.
side_mean_square: Option<f64>Mean square of S=(L-R)/2, with the same scaling as mid.
Trait Implementations§
Source§impl Clone for StereoMeasurements
impl Clone for StereoMeasurements
Source§fn clone(&self) -> StereoMeasurements
fn clone(&self) -> StereoMeasurements
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StereoMeasurements
Source§impl Debug for StereoMeasurements
impl Debug for StereoMeasurements
Source§impl PartialEq for StereoMeasurements
impl PartialEq for StereoMeasurements
impl StructuralPartialEq for StereoMeasurements
Auto Trait Implementations§
impl Freeze for StereoMeasurements
impl RefUnwindSafe for StereoMeasurements
impl Send for StereoMeasurements
impl Sync for StereoMeasurements
impl Unpin for StereoMeasurements
impl UnsafeUnpin for StereoMeasurements
impl UnwindSafe for StereoMeasurements
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more