pub struct AcResult {Show 13 fields
pub circuit: String,
pub test_freq_hz: f64,
pub gain_db: f64,
pub wdf_amp: f64,
pub golden_amp: f64,
pub shape_rms_db: f64,
pub shape_spectral_db: f64,
pub thd_wdf_db: f64,
pub thd_golden_db: f64,
pub harmonics: Vec<HarmonicError>,
pub response: Vec<FreqPoint>,
pub response_tilt_db: f64,
pub verdict: AcVerdict,
}Expand description
Full AC-accuracy result for one circuit.
Fields§
§circuit: String§test_freq_hz: f64Fundamental at which the level/shape/harmonic decomposition was taken.
gain_db: f64LEVEL: ac_gain_db(wdf, golden) at the test tone (the scalar offset).
wdf_amp: f64WDF single-bin amplitude at the test tone (signal units).
golden_amp: f64Golden single-bin amplitude at the test tone (signal units).
shape_rms_db: f64SHAPE (level factored out, phase-sensitive time domain), dB.
shape_spectral_db: f64SHAPE (level factored out, phase-immune magnitude), dB.
thd_wdf_db: f64THD of the WDF tone, dB.
thd_golden_db: f64THD of the golden tone, dB.
harmonics: Vec<HarmonicError>Per-harmonic (2nd–5th) dBc levels + error.
response: Vec<FreqPoint>Frequency-response sweep (per-frequency WDF-vs-golden gain).
response_tilt_db: f64Response tilt = max−min gain across the sweep, dB. ≈0 ⇒ flat (a scalar level offset); large ⇒ frequency-shaped response error.
verdict: AcVerdictImplementations§
Source§impl AcResult
impl AcResult
Sourcepub fn max_harmonic_error_db(&self) -> f64
pub fn max_harmonic_error_db(&self) -> f64
Worst per-harmonic error over SCORED harmonics (golden present).
Sourcepub fn thd_error_db(&self) -> f64
pub fn thd_error_db(&self) -> f64
|THD_wdf − THD_golden|.