Re: FFT for N Not a Power of 2
- From: Phil Hobbs <pcdhSpamMeSenseless@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 21 Nov 2008 12:36:31 -0500
Bill Davy wrote:
"Phil Hobbs" <pcdhSpamMeSenseless@xxxxxxxxxxxxxxxxxx> wrote in message news:4922B772.7090503@xxxxxxxxxxxxxxxxxxxxxW. eWatson wrote:It would seem that the FFT is applicable to only data with a number of observations that are a power of 2. Is that correct? If so, does one only remove the largest number of observations that are a power of 2, while ignoring the remainder?No.
There are FFT algorithms that work for any N, including prime numbers, but they're a few times less efficient than radix-2 FFTs.
Not sure that's right. I have a feeling that radix 4 and perhaps radix 8 are more efficient than radix 2 and that some transforms (I seem recall one by Singleton in an IEEE publication) used large factors. And somewhere there is a program that will generate an efficient FFT program for a specified number. Of course, if it's a prime, you're stuffed.
You're only stuffed if you're Tukey. ;) The fast algorithsm for prime N iiuc involve taking two different chirp-Z transforms in a row, but they're still N log N algorithms, like the Cooley-Tukey and Sande-Tukey algorithms. It's true that the quicker FFTs, e.g. FFTW don't use a pure radix-2 approach--but it sounds as though the OP is trying to understand FFT spectral estimation. Misapplied FFTs are famous for generating reasonable-looking wrong answers, so becoming clear on what's actually going on is the first order of business.
Cheers,
Phil Hobbs
.
- Follow-Ups:
- Re: FFT for N Not a Power of 2
- From: Steven G. Johnson
- Re: FFT for N Not a Power of 2
- From: Joseph Gwinn
- Re: FFT for N Not a Power of 2
- References:
- FFT for N Not a Power of 2
- From: W. eWatson
- Re: FFT for N Not a Power of 2
- From: Phil Hobbs
- Re: FFT for N Not a Power of 2
- From: Bill Davy
- FFT for N Not a Power of 2
- Prev by Date: Re: FFT for N Not a Power of 2
- Next by Date: Re: lens alignment stage for multiple degress of freedom
- Previous by thread: Re: FFT for N Not a Power of 2
- Next by thread: Re: FFT for N Not a Power of 2
- Index(es):
Relevant Pages
|