pub fn frequency_response(
time: &[f64],
input: &[f64],
output: &[f64],
frequencies: &[f64],
) -> Option<Vec<(SweepPoint, f64)>>Expand description
The frequency response from input to output of a trace with an excitation in it (noise, a chirp, a
PRBS), at the given frequencies: Welch’s H1 estimate over Hann windows with half overlap, each window
long enough for four periods of the lowest frequency. With it the coherence, 0 to 1: below about 0.8
the point is mostly noise or the response is not linear there. None for a trace too short for eight
windows: with few windows the coherence of pure noise comes out near 1.