<< Chapter < Page Chapter >> Page >

There are, in fact, trigonometric recurrences with the same logarithmic error growth as the FFT, but these seem more difficultto implement efficiently; they require that a table of Θ ( log n ) values be stored and updated as the recurrence progresses [link] , [link] . Instead, in order to gain at least some of the benefits of a trigonometric recurrence (reducedmemory pressure at the expense of more arithmetic), FFTW includes several ways to compute a much smaller twiddle table, from which thedesired entries can be computed accurately on the fly using a bounded number (usually < 3 ) of complex multiplications. For example, instead of a twiddle table with n entries ω n k , FFTW can use two tables with Θ ( n ) entries each, so that ω n k is computed by multiplying an entry in one table (indexed with the low-order bits of k ) by an entry in the other table (indexed with the high-order bits of k ).

There are a few non-Cooley-Tukey algorithms that are known to have worse error characteristics, such as the “real-factor”algorithm [link] , [link] , but these are rarely used in practice (and are not used at all in FFTW). On the other hand,some commonly used algorithms for type-I and type-IV discrete cosine transforms [link] , [link] , [link] have errors that we observed to grow as n even for accurate trigonometric constants (although we are not aware of any theoretical error analysisof these algorithms), and thus we were forced to use alternative algorithms [link] .

To measure the accuracy of FFTW, we compare against a slow FFT implemented in arbitrary-precision arithmetic, while to verify thecorrectness we have found the O ( n log n ) self-test algorithm of [link] very useful.

Concluding remarks

It is unlikely that many readers of this chapter will ever have to implement their own fast Fourier transform software, except as alearning exercise. The computation of the DFT, much like basic linear algebra or integration of ordinary differential equations, isso central to numerical computing and so well-established that robust, flexible, highly optimized libraries are widely available, for themost part as free/open-source software. And yet there are many other problems for which the algorithms are not so finalized, or for whichalgorithms are published but the implementations are unavailable or of poor quality. Whatever new problems one comes across, thereis a good chance that the chasm between theory and efficient implementation will be just as large as it is for FFTs, unlesscomputers become much simpler in the future. For readers who encounter such a problem, we hope that these lessons from FFTW will beuseful:

  • Generality and portability should almost always come first.
  • The number of operations, up to a constant factor, is less important than the order of operations.
  • Recursive algorithms with large base cases make optimization easier.
  • Optimization, like any tedious task, is best automated.
  • Code generation reconciles high-level programming with low-level performance.

We should also mention one final lesson that we haven't discussed in this chapter: you can't optimize in a vacuum, or you end upcongratulating yourself for making a slow program slightly faster. We started the FFTW project after downloading a dozen FFTimplementations, benchmarking them on a few machines, and noting how the winners varied between machines and between transform sizes.Throughout FFTW's development, we continued to benefit from repeated benchmarks against the dozens of high-quality FFT programsavailable online, without which we would have thought FFTW was “complete” long ago.

Acknowledgements

SGJ was supported in part by the Materials Research Science and Engineering Center program of the National Science Foundation underaward DMR-9400334; MF was supported in part by the Defense Advanced Research Projects Agency (DARPA) under contract No. NBCH30390004. Weare also grateful to Sidney Burrus for the opportunity to contribute this chapter, and for his continual encouragement—dating back to hisfirst kind words in 1997 for the initial FFT efforts of two graduate students venturing outside their fields.

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