<< Chapter < Page Chapter >> Page >

Fft methods

Self-sorting mixed-radix fft

The mixed-radix approach utilizes clever subsampling of x [ n ] and permutations of twiddle factor matrices to lower operation counts. The first step is to compute the prime factorization of the signal length N . Prime factors of 2 and 3 are then combined to create as many factors of 4 and 6 as possible. The resulting prime factorization has the form N = i = 1 F f i . We can then perform a single step T i of the algorithm by computing N / f i FFTs of length f i .

Four unique matrix constructions are necessary to generalize a single step of the algorithm. The first is the identity matrix I r R r × r . The second is the permutation matrix P b a R a b × a b , where

P b a ( j , k ) = 1 if j = r a + s and k = s b + r 0 otherwise

Note that P b a swaps positions r a + s and s b + r in a vector. The third matrix to consider is a diagonal matrix of twiddle factors D b a R a b × a b , where

D b a ( j , k ) = ω a b s r if j = k = s b + r 0 otherwise

with ω a b = e - j 2 π / ( a b ) . The fourth and final matrix construction to consider is the standard DFT matrix W n R n × n .

The mixed-radix algorithm requires the interaction of operations on the subspaces R i , i = 1 , . . . , F , and so it is necessary to consider the Kronecker Product in calculations. The Kronecker Product is an operation defined as : R m × n × R p × q R m p × n q . If C = A B , then

C ( v , w ) = A ( i , j ) B ( k , l ) and v p ( i - 1 ) + k w q ( j - 1 ) + l

Using these matrices, it possible to compose a single steps T i using the following equation [link] :

T i = ( P q i f i D q i f i I p i - 1 ) ( W f i I m i )

where

p i = j = 1 i f j ( p 0 = 1 ) , i = 0 , . . . , F q i = N / p i , i = 1 , . . . , F m i = N / f i , i = 1 , . . . , F

Note that T i R N × N .

To implement the algorithm, each stage is applied iteratively to acquire X . T i may be simplified into two separate steps using the definitions of each matrix to yield the following algorithm structure:

Mixed Radix

The DFT module in the above code utilizes the Winograd Short-Length Transforms to minimize operations when computing DFTs of length less than 6. For all other lengths, Rader's FFT is used.

Rader's fft

Rader's FFT for prime lengths exploits results from number theory to express the DFT as a composite-length cyclic convolution [link] . Any prime number p defines a multiplicative group modulo p , denoted Z n × = 0 , 1 , 2 , . . . , p - 1 . This group is cyclic, i.e., a Z p × g N p - 2 0 : a = g i = g - j , 0 i , j p - 2 , where g is known as the primitive root modulo p and N p - 2 0 = 0 , 1 , 2 , . . . , p - 2 . In practice, there is no general formula for finding g for p , but in this implementation N is known and therefore g may be stored in a lookup table.

The general form of the DFT of length p is given by

X k = n = 0 p - 1 x n ω p n k = x ˜ + n = 1 p - 1 x n ω p n k , k = 1 , 2 , . . . , p - 1

Since the twiddle factor, ω p n k , is naturally computed modulo p and both n and k range from 1 , 2 , . . . , p - 1 , we can rewrite the above formula using g :

X g - r = x ˜ + q = 0 p - 2 x g q ω p g - ( r - q ) , r = 0 , 1 , . . . , p - 2

This formulation is of the form of a cyclic convolution of two sequences α and β where α q = h g q and β q = ω p g - q of length p - 1 . This convolution is computed via the convolution theorem:

X - x ˜ = DFT - 1 DFT [ α ] · DFT [ β ]

For speed, the sequence α is zero-padded between its zeroth and first index to a length M which is a power of 2 such that M 2 p - 3 and β is cyclically repeated to be length M . Since N is known, it is possible to store the DFT of the sequence β in a lookup table. The DFT of α is then computed using the standard radix-2 Cooley-Tukey algorithm. The two DFTs are multiplied pointwise and then the inverse DFT is again calculated using the standard Cooley-Tukey algorithm. The first p elements are then the result of the cyclic convolution. The final result is attained after adding back the DC offset.

For small numerical examples demonstrating this implementation of Rader's FFT, see this excellent guide here .

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Using ffast to decrease computation time in digital multitone communication. OpenStax CNX. Dec 17, 2014 Download for free at http://legacy.cnx.org/content/col11731/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Using ffast to decrease computation time in digital multitone communication' conversation and receive update notifications?

Ask