Everything2
Near Matches
Ignore Exact
Full Text
Everything2

How the FFT works

created by ariels

(idea) by ariels (2.7 d) (print)   ?   (I like it!) 1 C! Thu Apr 20 2000 at 13:06:05

Here's how the (boring, radix-2) fast Fourier transform (FFT) works:

"Recall" that the discrete Fourier transform (DFT; what we're trying to calculate quickly) is defined by

   F(j) = Σk=0N-1 f(k) wk*j,
where f is a (periodic) function defined on N points, F is its Fourier transform, and w=exp(i/(2*pi*N)) is a primitive N'th root of 1. Now suppose that N>1 is a power of 2. Then we can separate out the sum above by even and odd k, to get
   F(j) = Σk=0N/2-1 (f(2k) + wj f(2k+1))*w^2kj
which is almost the DFT of the function
   g(k)     = f(2k) + wj f(2k+1)
   g(k+N/2) = f(2k) - wj f(2k+1)
and is not quite N/2-periodic. But if we calculate the Fourier transforms of f at even and odd points:
   F0(j) = Σk=0N/2-1 f(2k)   w2kj
   F1(j) = Σk=0N/2-1 f(2k+1) w2kj
then
   F(j) = F0(j) + wj F1(j)

So to calculate one Fourier transform of N points, we must calculate 2 Fourier transforms of N/2 points. This yields time complexity of O(n log n), much better than the naïve algorithm's running time of O(n^2).


printable version
chaos

Fourier transform Node More Mathematics Discrete Cosine Transform FFT
\sum Fourier analysis DFT Radix
Multiplication using the Fast Fourier Transform bit reversal function Fourier transforms, Wigner distributions, and Wavelet transforms How to spot bad internet porn stories
nth roots of unity I It's all Greek to me Fourier polynomial
generating function tricks Strassen algorithm for polynomial multiplication How to transform adjectives into adverbs in French Hybrid
equity Time complexity God is Dead exp
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Look at this mess the Death Borg made!
hatless atlas
rampaging wenchbeast
Serving saké
Let me fall until I believe, you're more than the leaves
And the things you can't remember tell the things you can't forget
Gold
Bahá'í
The Worst Moment
Reflections of yourself
Rhapsody on a Windy Night
Everything King James Bible
Catullus 11
extreme ironing
New Writeups
antigravpussy
One fly amongst many(person)
sam512
Moon Base Shackleton, 1978(fiction)
Pavlovna
toy boy(person)
XWiz
tear jerker(review)
Heitah
Anarchy is Order(idea)
jessicaj
July 26, 2008(dream)
Berek
ABBA(person)
devolution
k-hole(place)
Nadine_2
The Sound Of Madness(review)
SwimmingMonkey
Conversations with Fo Fo, the Loneliest dog in Purgatory(fiction)
locke baron
lynx(thing)
Simulacron3
Reality, Dimensions and the Natural Ontology(essay)
SubSane
Making Love to a 9-Foot Woman(person)
Ouzo
Thoughts(idea)
antigravpussy
I fall silent, listening. The breadcrumbs are talking about us(person)
This page courtesy of The Everything Development Company