Tested tool guide
Tested browser tools
Checked August 16, 2026
What FFT Spectrum Analyzer does, with a checked example
Supply a sequence of uniformly spaced signal samples and its sampling rate to inspect which frequency bins are strongest. The analyzer applies the selected window, computes an FFT, plots the spectrum, and identifies dominant components. The common mistake is treating a plotted bin as an exact continuous frequency. Bin spacing equals the sampling rate divided by the sample count, so a tone between bins can spread across neighboring bins and the reported dominant bin is only a sampled frequency location.
Worked example
A concrete input and expected output from the current implementation.
Input
Samples: 0, 1, 0, -1
Sampling rate: 4 Hz
Window: Rectangular
->
Expected output
Positive-frequency bins: 0 Hz = 0, 1 Hz = the only nonzero peak, 2 Hz = 0. Dominant frequency: 1 Hz.
These samples form one discrete sinusoidal cycle per four-sample record. Using the standard unnormalized DFT convention, the four-point transform is [0, -2i, 0, 2i]. The values are purely imaginary because the sample sequence has odd, sine-like symmetry, and for real input the 3 Hz bin is the negative-frequency counterpart of the 1 Hz bin.