In mathematics and Fourier analysis, a rectangular mask short-time Fourier transform (rec-STFT) is a simplified form of the short-time Fourier transform which is used to analyze how a signal's frequency content changes over time. In rec-STFT, a rectangular window (a simple on/off time-limiting function) is used to isolate short time segments of the signal. Other types of the STFT may require more computation time ( refers to the amount of time it takes a computer or algorithm to perform a calculation or complete a task) than the rec-STFT.
The rectangular mask function can be defined for some bound (B) over time (t) as

We can change B for different tradeoffs between desired time resolution and frequency resolution.
Rec-STFT

Inverse form

Property
Rec-STFT has similar properties with Fourier transform
(a)

(b)

- Shifting property (shift along x-axis)

- Modulation property (shift along y-axis)
![{\displaystyle \int _{t-B}^{t+B}[x(\tau )e^{j2\pi f_{0}\tau }]d\tau =X(t,f-f_{0})}](./499bbda6d65061b339311284633b2fad5774cc94.svg)
- When

- When

If
,
and
are their rec-STFTs, then

- Power integration property




Example of tradeoff with different B
From the image, when B is smaller, the time resolution is better. Otherwise, when B is larger, the frequency resolution is better.
Advantage and disadvantage
Compared with the Fourier transform:
- Advantage: The instantaneous frequency can be observed.
- Disadvantage: Higher complexity of computation.
Compared with other types of time-frequency analysis:
- Advantage: Least computation time for digital implementation.
- Disadvantage: Quality is worse than other types of time-frequency analysis. The jump discontinuity of the edges of the rectangular mask results in Gibbs ringing artifacts in the frequency domain, which can be alleviated with smoother windows.
See also
References
- Jian-Jiun Ding (2014) Time-frequency analysis and wavelet transform