help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do YOU handle this disparity in fft?


From: Brian Kaczynski
Subject: Re: How do YOU handle this disparity in fft?
Date: Sat, 15 Feb 2014 16:19:25 +0100

As an ADC designer, I recommend a slight modification to the Hanning window.  It even works well for sigma-delta ADC sequences.

The standard Hanning window is:
w[n] = 0.5*(1-cos(2*pi*n/(N-1)));
where 0 <= n <= N-1

The problem is that this window is not periodic with a period of N so you get smearing among the frequency bins.  I recommend this window:
w[n] = 0.5*(1-cos(2*pi*(n+0.5)/N));
where 0 <= n <= N-1

This window works much better when you have to resolve a deep null in the noise spectrum of a signal (as with a sigma-delta ADC output).

I don't think it's possible to identify a single "best" FFT window for all applications; rather, it's important to know about various windows and what their weaknesses and strengths are to identify the best window for a given application.

Generally I don't worry about the signal scaling after the window, since I'm only interested in relative magnitudes.  It's a good idea to include a signal of a known size in your time-domain vector so that you can use its FFT magnitude to "calibrate" the rest of the FFT.

-Brian


2014-02-15 16:03 GMT+01:00 Macy <address@hidden>:
When you use the Hanning Window, be sure to multiply times 2, else you get a reduction in signal strength.

There are some 'better' shaped windows used by the ADC/DAC chip makers to make their plots look good. But was not able to get a definitive answer on exactly what their functions were, but something like a squared hanning window can preserve more energy with less 'distortion', or a tanh function type thing.

There's probably an 'ideal' shape out there.



--- address@hidden wrote:

From: Sergei Steshenko <address@hidden>
To: Doug Stewart <address@hidden>, Mike Miller <address@hidden>
Cc: "address@hidden" <address@hidden>
Subject: Re: How do YOU handle this disparity in fft?
Date: Tue, 11 Feb 2014 06:02:51 -0800 (PST)

>>...snip....

That's why overlapping windows are used and the windows are typically Hamming or Hanning ones.The rule of thumb is: if you don't know what window to use, use the Hanning one.


Regards,
  Sergei.


_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave


reply via email to

[Prev in Thread] Current Thread [Next in Thread]