pub fn spectrum(values: &[f64], dt: f64) -> Vec<[f64; 2]>Expand description
The amplitude spectrum of samples dt apart: (frequency Hz, amplitude) from 0 to the Nyquist frequency. Of the
samples, zero-padded to a power of two, mean removed, through a Hann window; a sine of amplitude A on a bin gives A there.
Empty for fewer than 8 samples.