1 Department of Electronics and Computer Engineering, Faculty of Engineering, Nnamdi Azikiwe University, Awka, Anambra State, Nigeria.
2 Department of Computer Science, Faculty of Physical Sciences, Nnamdi Azikiwe University, Awka, Anambra State, Nigeria.
* Corresponding Author
ORCID Details
Emmanuel Ndunuju Amadiegwu: https://orcid.org/0009-0003-6523-2208
Joy Ukibe: https://orcid.org/0009-0002-8917-4543
World Journal of Advanced Research and Reviews, 2026, 32(02), 1378–1387
Article DOI: 10.30574/wjarr.2026.32.2.2946
Received on 16 November 2026; revised on 17 November 2026; accepted on 19 November 2026
A global magnitude or power spectrum derived from the discrete Fourier transform (DFT) summarizes frequency content without an explicit time axis, which limits its direct interpretation for non-stationary signals such as electroencephalography (EEG). This study derives the short-time Fourier transform (STFT) from the ordinary Fourier transform, clarifies how the analysis window shapes the measurement, and quantifies how window length controls the time and frequency errors of a spectrogram. The continuous and finite discrete STFT are developed from first principles, together with the windowing that turns an ideal spectral line into a main lobe and side lobes, the separation between zero-padding and resolution, and the time-frequency uncertainty bound σtσf ≥ 1/(4π). A reproducible C++20 implementation using FFTW is described. A controlled experiment then varies only the Hann window length, from 125 to 2000 ms at a 256 Hz sampling rate, while fixing the transform-length rule NFFT = L, the 75% overlap proportion, the PSD normalization convention, and the decision rules, using synthetic signals with known frequency, onset, and duration across 200 paired noisy trials at 0 dB signal-to-noise ratio. Peak-bin frequency error fell from 2.0 Hz at short windows to 0 Hz once the target frequency lay on the DFT grid, while burst-onset and burst-duration errors rose with window length, confirming the predicted opposing trends. A single-channel EEG recording illustrates the same representation on measured data without treating task labels as spectral ground truth. The results show that a spectrogram becomes a quantitative measurement only when its window, hop, normalization, estimator, and reference truth are stated explicitly.
Short-Time Fourier Transform; Spectrogram; Time-Frequency Uncertainty; Spectral Leakage; Window Length; Electroencephalography
Preview Article PDF
Emmanuel Ndunuju Amadiegwu and Joy Ukibe. QUANTIFYING THE TIME–FREQUENCY TRADE-OFF OF WINDOW LENGTH IN SHORT-TIME FOURIER TRANSFORM SPECTROGRAMS: A CONTROLLED STUDY WITH SYNTHETIC AND EEG SIGNALS. World Journal of Advanced Research and Reviews, 2026, 32(02), 1378–1387. Article DOI: https://doi.org/10.30574/wjarr.2026.32.2.2946