且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

汉明窗有什么用?

更新时间:2023-02-27 10:32:40

无论何时进行有限傅立叶变换,您都是在隐式地将其应用于无限重复的信号.因此,例如,如果您的有限样本的开始和结束不匹配,那么这看起来就像信号中的不连续性,并在傅立叶变换中显示为大量高频废话,而您没有真的很想要如果您的样本恰好是一个漂亮的正弦曲线,但整数个周期恰好不适合有限样本,那么您的 FT 将在远​​离实际频率的各种地方显示可观的能量.你不想要任何这些.

Whenever you do a finite Fourier transform, you're implicitly applying it to an infinitely repeating signal. So, for instance, if the start and end of your finite sample don't match then that will look just like a discontinuity in the signal, and show up as lots of high-frequency nonsense in the Fourier transform, which you don't really want. And if your sample happens to be a beautiful sinusoid but an integer number of periods don't happen to fit exactly into the finite sample, your FT will show appreciable energy in all sorts of places nowhere near the real frequency. You don't want any of that.

窗口化数据可确保两端匹配,同时保持一切合理平滑;这大大减少了上一段中描述的那种光谱泄漏".

Windowing the data makes sure that the ends match up while keeping everything reasonably smooth; this greatly reduces the sort of "spectral leakage" described in the previous paragraph.