You are on page 1of 3

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/3321510

An update to the sliding DFT

Article in IEEE Signal Processing Magazine · February 2004


DOI: 10.1109/MSP.2004.1516381 · Source: IEEE Xplore

CITATIONS READS
211 3,282

2 authors:

Eric Jacobsen Richard G. Lyons


Anchor Hill Communications Institute of Electrical and Electronics Engineers
9 PUBLICATIONS 1,015 CITATIONS 36 PUBLICATIONS 1,117 CITATIONS

SEE PROFILE SEE PROFILE

All content following this page was uploaded by Richard G. Lyons on 05 June 2015.

The user has requested enhancement of the downloaded file.


dsp tips & tricks continued

Table 1. Arctan expressions versus octant location. An Update to the


Sliding DFT
Octant Arctan approximation
Eric Jacobsen
 IQ
first or eighth θ = 2 and Richard Lyons
I + 0.28125Q 2

IQ

B
second or third θ  = π/2 −
Q 2 + 0.28125I 2
ecause of our contin-
IQ ued investigation of
fourth or fifth θ = π + 2
I + 0.28125Q 2 the sliding DFT
(SDFT), and the
IQ
sixth or seventh θ  = −π/2 − interest the March
Q 2 + 0.28125I 2
2003 article [1] generated among
our DSP brethren, we provide this
update to our readers:
▲ 1) Referring to [1], while the
number residing in any octant. We The fifth octant θ  is then estimated typical Goertzel algorithm descrip-
do this by using the rotational sym- using I  and Q  with tion in the literature specifies the
metry properties of the arctangent frequency resonance variable k in

θ5th oct. = −3π/4
(2) and Figure 1 to be an integer
I Q  (making the Goertzel filter’s output
tan−1 (−Q /I ) = −tan−1 (Q /I ) (3) − . equivalent to an N-point DFT bin
Q 2 + 0.28125I 2
tan−1 (Q /I ) = π/2 −tan−1 (Q /I ) output), k can in fact be any value
(5)
(3 ) between 0 and N –1 giving us full
flexibility in specifying a Goertzel
Concluding Remarks filter’s resonance frequency.
Those properties allow us to create This arctangent algorithm may be ▲ 2) Since we wrote the article,
Table 1, listing the appropriate arc- useful in a digital receiver applica- we’ve been made aware of several
tan approximation based on the tion where I 2 and Q 2 have been other versions of the SDFT expres-
octant location of complex x. previously computed in conjunction sion, S k (n) in (4). While (4) in [1]
So we have to check the signs of with an amplitude modulation provides the correct DFT magni-
Q and I, and see if |Q | > |I |, to demodulation process or envelope tude results for real-time spectrum
determine the octant location and detection associated with automatic analysis, its S k (n) phase contains a
then use the appropriate approxima- gain control. fixed offset requiring correction if
tion in Table 1. The maximum DFT phase results are required. A
angle approximation error is 0.26◦ Richard Lyons is a consulting sys- better expression for the SDFT is
for all octants. tems engineer and lecturer with
When θ is in the fifth octant, the Besser Associates in Mt. View,
above algorithm will yield a θ  that’s California. He has been the lead S k (n) = e j 2π k/N [S k (n − 1) + x (n)
more positive than +π radians. If hardware engineer for numerous − x (n − N )]. (1 )
we need to keep the θ  estimate in multimillion dollar signal processing
the range of −π to +π , we can systems for both the National
rotate any θ residing in the fifth Security Agency and TRW Inc. and Equation (1 ), implemented with a
quadrant +π/4 rad (45◦ ) by multi- has taught at the University of comb filter followed by a complex
plying (I + j Q ) by (1 + j ), placing California Santa Cruz Extension. An resonator, as shown in Figure 1,
it in the sixth octant. That multipli- associate editor for IEEE Signal provides both correct DFT magni-
cation yields new real and imaginary Processing Magazine, he is also the tude and phase results.
parts defined as author of Understanding Digital ▲ 3) We’ve discovered a useful prop-
Signal Processing (Prentice-Hall, erty of the SDFT that’s not widely
1997). He is a member of the IEEE known but is important. If we change
I  = (I − Q ) and Q  = j (I + Q ). and the Eta Kappa Nu honor society the SDFT’s comb filter feedforward
(4) and rides a 1981 Harley Davidson. coefficient from –1 to +1, the

110 IEEE SIGNAL PROCESSING MAGAZINE JANUARY 2004


comb’s zeros will be rotated counter-
clockwise around the unit circle by an x(n) Sk(n)
angle of π/N radians. Tans. This sit-
uation, for N = 8, is shown on the
z –N –1 e j 2πk /N z –1
right side of Figure 2(a). The zeros
are located at angles of
2π(k + 1/2)/N radians. The k = 0 x(n–N) Sk(n–1)
zeros are shown as solid dots. Figure
2(b) shows the zeros locations for an ▲ 1. Improved SDFT structure.
N = 9 SDFT under the two condi-
tions of the comb filter’s feedforward
coefficient being −1 and +1.
This alternate situation is useful,
and we can now expand our set of
spectrum analysis center frequencies
Comb Coefficient = –1 Comb Coefficient = +1
to more than just N angular fre-
quency points around the unit circle.
The analysis frequencies can be 1 N=8 1 N=8
2π k/N or 2π(k + 1/2)/N , where

Imaginary Part
Imaginary Part

integer k is in the range 0 ≤ k ≤


2π/N 3π/N
N − 1. Thus we can build an SDFT N Even 0 0
analyzer that resonates at any one of
2N frequencies between 0 and f s –1 –1
Hz. Of course, if the comb filter’s
–1 0 1 –1 0 1
feedfoward coefficient is set to +1,
Real Part Real Part
the resonator’s feedforward coeffi- (a)
cient must be e j 2π(k+1/2)/N to
achieve pole/zero cancellation.
▲ 4) To correct typographical 1 N=9 1 N=9
Imaginary Part

Imaginary Part

errors in Table 1 of [1], the column


4π/N 5π/N
headings should be a1 , a2 , and a3 N Odd 0 0
(not α1 , α2 , and α3 ). For the
Hanning window in Table 1, coeffi-
cient a1 = 0.5 (not 0.25). –1 –1
–1 0 1 –1 0 1
References Real Part
(b)
Real Part
[1] E. Jacobsen and R. Lyons, “The sliding DFT,”
IEEE Signal Processing Mag., vol. 20, no. 2, pp.
74–80, Mar. 2003. ▲ 2. Four possible orientations of comb filter zeros on the unit circle.

JANUARY 2004 IEEE SIGNAL PROCESSING MAGAZINE 111

View publication stats

You might also like