<< Chapter < Page Chapter >> Page >

In order to get some idea of the “best" radix, the number of multiplications to compute a length-R DFT is assumed to be F ( R ) = R x . If this is used with [link] , the optimal R can be found.

d F / d R = 0 = > R = e 1 / ( x - 1 )

For x = 2 this gives R = e , with the closest integer being three.

The result of this analysis states that if no other arithmetic saving methods other than index mapping are used, and ifthe length-R DFT's plus TFs require F = R 2 multiplications, the optimal algorithm requires

F = 3 N log 3 N

multiplications for a length N = 3 M DFT. Compare this with N 2 for a direct calculation and the improvement is obvious.

While this is an interesting result from the analysis of the effects of index mapping alone, in practice, index mapping is almostalways used in conjunction with special algorithms for the short length- N i DFT's in [link] . For example, if R = 2 or 4, there are no multiplications required for the short DFT's. Only theTFs require multiplications. Winograd (see Winorad's Short DFT Algorithms ) has derived some algorithms for short DFT's that require O ( N ) multiplications. This means that F ( N i ) = K N i and the operation count F in "Efficiencies Resulting from Index Mapping with the DFT" is independent of N i . Therefore, the derivative of F is zero for all N i . Obviously, these particular cases must be examined.

The fft as a recursive evaluation of the dft

It is possible to formulate the DFT so a length-N DFT can be calculated in terms of two length-(N/2) DFTs. And, if N = 2 M , each of those length-(N/2) DFTs can be found in terms of length-(N/4) DFTs. This allows the DFT to be calculated bya recursive algorithm with M recursions, giving the familiar order N log ( N ) arithmetic complexity.

Calculate the even indexed DFT values from [link] by:

C ( 2 k ) = n = 0 N - 1 x ( n ) W N 2 n k = n = 0 N - 1 x ( n ) W N / 2 n k
C ( 2 k ) = n = 0 N / 2 - 1 x ( n ) W N 2 n k + n = N / 2 N - 1 x ( n ) W N / 2 n k
C ( 2 k ) = n = 0 N / 2 - 1 { x ( n ) + x ( n + N / 2 ) } W N / 2 n k

and a similar argument gives the odd indexed values as:

C ( 2 k + 1 ) = n = 0 N / 2 - 1 { x ( n ) - x ( n + N / 2 ) } W N n W N / 2 n k

Together, these are recursive DFT formulas expressing the length-N DFT of x ( n ) in terms of length-N/2 DFTs:

C ( 2 k ) = DFT N / 2 { x ( n ) + x ( n + N / 2 ) }
C ( 2 k + 1 ) = DFT N / 2 { [ x ( n ) - x ( n + N / 2 ) ] W N n }

This is a “decimation-in-frequency" (DIF) version since it gives samples of the frequency domain representation in terms of blocksof the time domain signal.

A recursive Matlab program which implements this is given by:

function c = dftr2(x) % Recursive Decimation-in-Frequency FFT algorithm, csb 8/21/07L = length(x); if L>1 L2 = L/2;TF = exp(-j*2*pi/L).^[0:L2-1];c1 = dftr2( x(1:L2) + x(L2+1:L)); c2 = dftr2((x(1:L2) - x(L2+1:L)).*TF);cc = [c1';c2'];c = cc(:); elsec = x; end
DIF Recursive FFT for N = 2 M

A DIT version can be derived in the form:

C ( k ) = DFT N / 2 { x ( 2 n ) } + W N k DFT N / 2 { x ( 2 n + 1 ) }
C ( k + N / 2 ) = DFT N / 2 { x ( 2 n ) } - W N k DFT N / 2 { x ( 2 n + 1 ) }

which gives blocks of the frequency domain from samples of the signal.

A recursive Matlab program which implements this is given by:

function c = dftr(x) % Recursive Decimation-in-Time FFT algorithm, csbL = length(x); if L>1 L2 = L/2;ce = dftr(x(1:2:L-1)); co = dftr(x(2:2:L));TF = exp(-j*2*pi/L).^[0:L2-1];c1 = TF.*co; c = [(ce+c1), (ce-c1)]; elsec = x; end
DIT Recursive FFT for N = 2 M

Similar recursive expressions can be developed for other radices and and algorithms. Most recursive programs do not execute as efficiently as looped or straight code,but some can be very efficient, e.g. parts of the FFTW.

Note a length- 2 M sequence will require M recursions, each of which will require N / 2 multiplications. This give the N log ( N ) formula that the other approaches also derive.

Questions & Answers

I'm interested in biological psychology and cognitive psychology
Tanya Reply
what does preconceived mean
sammie Reply
physiological Psychology
Nwosu Reply
How can I develope my cognitive domain
Amanyire Reply
why is communication effective
Dakolo Reply
Communication is effective because it allows individuals to share ideas, thoughts, and information with others.
effective communication can lead to improved outcomes in various settings, including personal relationships, business environments, and educational settings. By communicating effectively, individuals can negotiate effectively, solve problems collaboratively, and work towards common goals.
it starts up serve and return practice/assessments.it helps find voice talking therapy also assessments through relaxed conversation.
miss
Every time someone flushes a toilet in the apartment building, the person begins to jumb back automatically after hearing the flush, before the water temperature changes. Identify the types of learning, if it is classical conditioning identify the NS, UCS, CS and CR. If it is operant conditioning, identify the type of consequence positive reinforcement, negative reinforcement or punishment
Wekolamo Reply
please i need answer
Wekolamo
because it helps many people around the world to understand how to interact with other people and understand them well, for example at work (job).
Manix Reply
Agreed 👍 There are many parts of our brains and behaviors, we really need to get to know. Blessings for everyone and happy Sunday!
ARC
A child is a member of community not society elucidate ?
JESSY Reply
Isn't practices worldwide, be it psychology, be it science. isn't much just a false belief of control over something the mind cannot truly comprehend?
Simon Reply
compare and contrast skinner's perspective on personality development on freud
namakula Reply
Skinner skipped the whole unconscious phenomenon and rather emphasized on classical conditioning
war
explain how nature and nurture affect the development and later the productivity of an individual.
Amesalu Reply
nature is an hereditary factor while nurture is an environmental factor which constitute an individual personality. so if an individual's parent has a deviant behavior and was also brought up in an deviant environment, observation of the behavior and the inborn trait we make the individual deviant.
Samuel
I am taking this course because I am hoping that I could somehow learn more about my chosen field of interest and due to the fact that being a PsyD really ignites my passion as an individual the more I hope to learn about developing and literally explore the complexity of my critical thinking skills
Zyryn Reply
good👍
Jonathan
and having a good philosophy of the world is like a sandwich and a peanut butter 👍
Jonathan
generally amnesi how long yrs memory loss
Kelu Reply
interpersonal relationships
Abdulfatai Reply
What would be the best educational aid(s) for gifted kids/savants?
Heidi Reply
treat them normal, if they want help then give them. that will make everyone happy
Saurabh
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Fast fourier transforms. OpenStax CNX. Nov 18, 2012 Download for free at http://cnx.org/content/col10550/1.22
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Fast fourier transforms' conversation and receive update notifications?

Ask