Re: Can you trim a FFT?



"Tim Little" <tim@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:slrng332rl.j2s.tim@xxxxxxxxxxxxxxxxxxxxxxxxxx
On 2008-05-19, shoo <JGBurgess@xxxxxxxxx> wrote:
I would nievily like to know if there is a method of applying the
fft with the intention of only requiring a predetermind range of
frequency. hense no waste in the fft.

You can, but it won't save you very much. Every point in the spectrum
inherently depends upon every point in the data, so to compute even a
single value you definitely need O(N) operations, and the full
spectrum needs only O(N log N).

Still, if you want to do it anyway, then the Cooley-Tukey FFT
algorithm is relatively easy to adapt. E.g. to calculate the first T
data points of N in the final FFT, you also only need the first T of
the data points from the previous odd/even FFTs.

The net effect is that instead of O(N log N) computation, you do it in
O(N log T).

If you also want to throw away low frequencies, I think one of the
easier ways would be to just multiply the data by an imaginary
exponential of the appropriate frequency, shifting the spectrum so
that the lower edge of the desired band is at 0 Hz. Then do the
low-frequency transform and shift the spectrum back up again.

In your case that would be of dubious value: the difference in
computation for a 25 Hz band vs 30 Hz will be trivial.

Another approach might be to use a periodogram approach.
Try a search on the "Lomb-Scargle Periodogram", for
example. You can search the data for just the frequency
ranges you're interested in.
.



Relevant Pages

  • Re: Best way to measure precise harmonics?
    ... to a spectrum analyzer, but it just doesn't seem to be precise enough ... ostensibly due to a limited-sample FFT. ... It's quite possible to get distortion ... the analyzer can resolve them. ...
    (sci.electronics.design)
  • Re: FFT of stock market data?
    ... people do use FFT (or other spectral analysis techniques) to price ... take log of the price series. ... the problem with FFT is resolution of time periods, ... the spectrum, yet actual data may not contain that period or cycle. ...
    (comp.soft-sys.matlab)
  • Re: Cheap Spectral Analyzer
    ... The spectral analyzer FerFT is cheap as from $29.85. ... draw FFT components and amplitude waveforms with this Java-based ... realtime spectrum analyzer for XMMS ... "a software tool designed for the analysis of signals and time series ...
    (sci.electronics.design)
  • Re: FFT on RF Partial Discharge signals
    ... density spectrum" as well. ...  I have a jpeg of the signals but I am ... the "silent" bits) and then applying an FFT will give me the ... corresponding spectrum with respect to window applied, be it hamming, ...
    (comp.dsp)
  • Re: FFT on RF Partial Discharge signals
    ... density spectrum" as well. ...  I have a jpeg of the signals but I am ... the "silent" bits) and then applying an FFT will give me the ... corresponding spectrum with respect to window applied, be it hamming, ...
    (comp.dsp)