Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate(
    circuit: &str,
    wdf: &[f64],
    golden: &[f64],
    sample_rate: f64,
    test_freq_hz: f64,
    response: Vec<FreqPoint>,
    th: &AcThresholds,
) -> AcResult
Expand description

Decompose the WDF-vs-golden AC error into level / shape / harmonics / response and reach a verdict.

wdf and golden are settled, same-rate, same-length, same-phase windows of the SAME test tone at test_freq_hz. response is the per-frequency gain sweep (may be empty; then RESPONSE is not graded).