---
title: "Window functions in signal analysis: Hann, Hamming… | RTE"
description: "Cutting a signal abruptly creates artificial frequency content – the notorious leakage. We compare the most important window functions mathematically and…"
url: https://www.rte.de/en/blog/fensterfunktionen-signalanalyse/
lang: en-US
---

1. [Home](https://www.rte.de/en/)
2. [Blog](https://www.rte.de/en/blog/)
3. Window functions in signal analysis: Hann, Hamming, Flat-Top & Co.

[← All blog articles](https://www.rte.de/en/blog/) Signal processing 

# Window functions in signal analysis: Hann, Hamming, Flat-Top & Co.

Cutting a signal abruptly creates artificial frequency content – the notorious leakage. We compare the most important window functions mathematically and show which window suits which inspection task.

May 09, 2024 · 9 min read · Dr.-Ing. Signalverarbeitung, RTE 

![Comparison of window functions in time and frequency domain](https://www.rte.de/images/blog/fensterfunktionen-signalanalyse.jpg) 

In this article

Tags

HannHammingFlat-TopLeakageSpektralanalyse 

The FFT implicitly assumes that its input is periodic. In reality this is almost never the case – we cut a finite section out of a continuous signal. This cut creates a jump at the frame edges, which shows up as the **leakage effect**: sharp frequency lines become broad, smeared mountains.

## Leakage in concrete terms

Example: pure 1 kHz sinusoid sampled at _fs \= 51.2 kHz_, _N = 8,192_. Resolution Δf = 6.25 Hz. If the 1 kHz line falls exactly on a bin, you see a clean peak. If it falls between bins (e.g. 1,003 Hz), the energy smears over 5–10 bins. A weaker nearby line drowns in leakage noise.

## The cure: smooth roll-off

xw(n) = x(n) · w(n)

The window function smoothly tapers the frame to zero at both ends so no jump remains. Price: signal weighted more in the middle, frequency resolution broadens.

## The most important windows

**Rectangle:** no window. Narrowest main lobe, strong side lobes (−13 dB). Only useful for naturally periodic signals.

**Hann:** w(n) = 0.5 · (1 − cos(2π n / (N−1))). Classic for general spectral analysis. Main lobe 1.5× wider, side lobes −31 dB.

**Hamming:** w(n) = 0.54 − 0.46 · cos(2π n / (N−1)). Side lobes −43 dB.

**Blackman-Harris:** very strong side lobe attenuation (< −90 dB), main lobe 4× wider.

**Flat-Top:** optimised for amplitude measurement. Main lobe 5× wider, amplitude error < 0.01 dB.

## Comparison matrix

| Window          | Main lobe | Highest side lobe | Amplitude error | Use                   |
| --------------- | --------- | ----------------- | --------------- | --------------------- |
| Rectangle       | 1.0       | −13 dB            | 3.9 dB max      | periodic signals      |
| Hann            | 1.5       | −31 dB            | 1.5 dB max      | NVH default           |
| Hamming         | 1.4       | −43 dB            | 1.7 dB max      | communications        |
| Blackman-Harris | 4.0       | −92 dB            | 0.8 dB max      | weak next to strong   |
| Flat-Top        | 5.0       | −70 dB            | < 0.01 dB       | amplitude measurement |

## Decision guide

- **Resonance detection:** Hann or Blackman-Harris.
- **Order analysis on motors:** Hann (default).
- **Calibration / level measurement:** Flat-Top.
- **Triggered hammer excitation:** Rectangle (signal naturally decays).

## Related articles

[ ![Visualisation of a Fourier transform: time signal, spectrum and butterfly diagram](https://www.rte.de/images/blog/fft-erklaert.jpg) Signal processing September 20, 2023 FFT explained: from time signal to frequency spectrum The Fast Fourier Transform is the foundation of every acoustic evaluation. We derive DFT and FFT mathematically, explain the butterfly algorithm and show on an electric motor what becomes visible in the spectrum. Read more → ](https://www.rte.de/en/blog/fft-erklaert/)[ ![PSD plot of a roller bearing in healthy and damaged condition](https://www.rte.de/images/blog/leistungsdichtespektrum-psd.jpg) Signal processing August 14, 2025 Power spectral density: from FFT to PSD Raw FFT amplitude depends on frame length and window. Power spectral density (PSD) makes measurements comparable and yields energy per Hz. We explain autocorrelation, Parseval, Welch and what it means for vibration monitoring. Read more → ](https://www.rte.de/en/blog/leistungsdichtespektrum-psd/)[ ![Comparison of filter characteristics Butterworth, Chebyshev, Bessel and Elliptic](https://www.rte.de/images/blog/digitale-filter-prueftechnik.jpg) Signal processing October 14, 2026 Digital filters in acoustic testing: high-, low- and bandpass Filters are the invisible preprocessing without which no clean acoustic evaluation succeeds. We compare IIR and FIR filters, Butterworth and Chebyshev characteristics and show where each topology shines. Read more → ](https://www.rte.de/en/blog/digitale-filter-prueftechnik/) 

## Ready to experience acoustic test technology in your line?

Send us your part or schedule an online demo. First assessment within 24 hours.

[Request feasibility study](https://www.rte.de/en/contact/) [Request demo](https://www.rte.de/en/contact/#demo) 

Or call directly: [+49 721 94650-0](tel:+497219465000)
