pub struct AcThresholds {
pub gain_warn_db: f64,
pub shape_rms_fail_db: f64,
pub shape_spectral_fail_db: f64,
pub thd_error_fail_db: f64,
pub harmonic_fail_db: f64,
pub response_tilt_fail_db: f64,
}Expand description
Thresholds for grading the AC dimensions. Informative (localizes which dimension carries the error), not a hard CI gate.
Fields§
§gain_warn_db: f64A |gain| above this at the test tone counts as a LEVEL offset. 1 dB.
shape_rms_fail_db: f64Gain-normalized RMS shape residual (dB) above which SHAPE is bad. The
residual is 20·log10(rms(wdf_norm − golden)/rms(golden)), so −20 dB
(≈ 10 % shape difference) is the boundary. NOTE: this is phase-
SENSITIVE — a pure group-delay difference inflates it even when the
magnitude shape agrees; cross-check with shape_spectral.
shape_spectral_fail_db: f64Gain-normalized, phase-IMMUNE in-band magnitude shape error (dB) above which SHAPE is bad. 3 dB.
thd_error_fail_db: f64|THD_wdf − THD_golden| (dB) above which HARMONICS are bad. 6 dB.
harmonic_fail_db: f64Max per-harmonic dBc error above which HARMONICS are bad. 6 dB.
response_tilt_fail_db: f64Response tilt (max−min gain across the sweep, dB) above which the error is frequency-SHAPED (a RESPONSE error, not a flat scalar). 3 dB.
Trait Implementations§
Source§impl Clone for AcThresholds
impl Clone for AcThresholds
Source§fn clone(&self) -> AcThresholds
fn clone(&self) -> AcThresholds
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more