◀ Back to Theory of operation

FFT analysis essentials

About this page. This is a short summary, in our own words, of the topics covered by an excellent external guide: "FFT Analysis (Fast Fourier Transform): The Ultimate Guide to Frequency Analysis" by Søren Linnet Gjelstrup (Dewesoft). All credit belongs to the original - read it there for the full treatment with figures and examples. This summary exists so the key ideas are at hand offline.

The core trade-off: resolution vs. time

An FFT of block length N at sample rate fs produces spectral lines spaced

Δf = fs / N(1)

and needs a time block of duration

T = 1 / Δf(2)

Finer frequency resolution therefore always costs proportionally more measurement time - there is no way around (2), only ways to spend the time well (averaging, overlap). Frequencies are only observable up to the Nyquist limit fs/2.

Leakage and windows

The FFT silently assumes the analysed block repeats forever. A tone whose frequency falls between two spectral lines violates that assumption at the block edges, and its energy smears ("leaks")[3] across neighbouring lines - the level reads low and the skirt reads high. Multiplying the block by a window[2] that tapers to zero at the edges suppresses the discontinuity. Every window trades main-lobe width (frequency selectivity) against side-lobe height (dynamic range); the guide's practical rules[1]:

SignalWindow
Periodic tones, harmonicsHann or Blackman-family
Broadband random noiseHann, with density scaling
Transients fully inside the blockRectangular (no window)

(Phonalyser.web's FFT pane offers these and several flat-top / HFT windows; coherent averaging changes the trade-offs - that will be covered in the FFT chapter of this help.)

Amplitude scaling

The same spectrum can be displayed against different references: linear amplitude (same unit as the input - right for discrete tones), power (amplitude squared), or spectral density (power or amplitude normalised per Hz of bandwidth - right for noise, because a noise floor in density units does not move when the FFT length changes). Phonalyser.web's V/√Hz unit is exactly this density scaling.

Averaging and overlap

Averaging n spectra reduces the variance of the noise estimate - the fluctuation of an RMS-averaged spectrum falls as 1/√n. Overlapping successive blocks (typically by 2/3 or 3/4 with a Hann window) re-uses samples the window's taper would otherwise waste and raises the update rate without extra capture time.

Two-channel functions

With a reference channel, cross-spectra give the frequency-response function of a system and the coherence - a 0...1 figure telling how much of the output is linearly caused by the input. These are the foundations of the frequency-response measurement described in the generator chapter.

References

  1. S. L. Gjelstrup, "FFT Analysis (Fast Fourier Transform): The Ultimate Guide to Frequency Analysis", Dewesoft Data Acquisition Knowledge Base - the original article this page summarises.
  2. Wikipedia: Window function - catalogue of windows with their main-lobe / side-lobe figures.
  3. Wikipedia: Spectral leakage.

◀ Back to Theory of operation