<< Chapter < Page Chapter >> Page >
A d ( ω ) = { 1 π ω 0 ω ω 0 0 ω 0 ω π

and illustrated in [link] For N odd, the ideal infinitely and shifted filter coefficients are the inverse DTFT of this amplitude given by

h ^ d ( n ) = 1 π 0 ω 0 ( ω π ) cos ( ω n ) d ω = cos ( ω 0 n ) - 1 π 2 n 2 + ω 0 sin ( ω 0 n ) π 2 n

with the indeterminate h ^ d ( 0 ) = ω 0 2 2 π 2 . This is now truncated and shifted by M = ( N - 1 ) / 2 to give the optimal, causal length- N FIR filter coefficients as

h ( n ) = cos ( ω 0 ( n - M ) ) - 1 π 2 ( n - M ) 2 + ω 0 sin ( ω 0 ( n - M ) ) π 2 ( n - M ) for 0 n N - 1

and h ( n ) = 0 otherwise. The corresponding derivation for an even length starts with the inverseDTFT for a shifted even length filter in Equation 15 from Chebyshev or Equal Ripple Error Approximation Filters and after shifting by N / 2 gives the same result as [link] .

The graph is labeled Linearly Increasing Amplitude wiath a Lowpass Cutoff. The x axis is labeled Normalized Frequency and the y axis is Amplitude Response. The graph consist of a line extending from the origin with a positive slope and then the line proceeds straight down at x=.8 until it hits the x axis at a right angle.
Ideal Frequency Response of an FIR Filter with Increasing Gain in the Passband and Lowpass Cutoff

Ideal differentiator plus lowpass filter

Fortunately the inverse DTFT for an ideal differentiator combined with a lowpass filter can also be analytically evaluated. The ideal amplituderesponse is the same as [link] and [link] but, since this case has an odd symmetric impulse response, the inverse DTFT uses sine functions which forodd N gives

h ^ d ( n ) = 1 π 0 ω 0 ( 1 π ω ) sin ( ω n ) d ω = sin ( ω 0 n ) π 2 n 2 - ω 0 cos ( ω 0 n ) π 2 n

with the indeterminate h ^ d ( 0 ) = 0 . This is now truncated and shifted by M = ( N - 1 ) / 2 to give the optimal, causal length- N FIR filter coefficients as

h ( n ) = sin ( ω 0 ( n - M ) ) π 2 ( n - M ) 2 - ω 0 cos ( ω 0 ( n - M ) ) π 2 ( n - M ) for 0 n N - 1

and h ( n ) = 0 otherwise. Again the corresponding derivation for an even length gives the sameresult as in [link] . Note this very general single formula includes as special cases the odd and even length full band ( ω 0 = π ) differentiator given in [link] . Also note that for a full band differentiator, an even length is much preferred because of the zero at ω = π for an odd length. However, for the differentiator with a lowpass filter, the zero aids in the lowpass filtering and, therefore,might be an advantage.

Hilbert transformer

The inverse DTFT for an ideal Hilbert transform [link] combined with a lowpass filter can also be analytically evaluated. The ideal amplituderesponse is the same as [link] but with a constant phase shift of ϕ = π / 2 . Since this case has an odd symmetric impulse response, the inverse DTFT uses sine functions which for odd N which gives

h ^ d ( n ) = 1 π 0 ω 0 sin ( ω n ) d ω = 1 - cos ( ω 0 n ) π n

with the indeterminate h ^ d ( 0 ) = 0 . This is now truncated and shifted by M = ( N - 1 ) / 2 to give the optimal, causal length- N FIR filter coefficients as

h ( n ) = 1 - cos ( ω 0 ( n - M ) ) π ( n - M ) 0 n N - 1

and h ( n ) = 0 otherwise. Again the corresponding derivation for an even length gives the same result as in [link] . The ideal amplitude response is shown in [link] .

The Cartesian graph contains in essence two squares formed by the presence of lines in both the bottom left and top left areas of the graph. In the bottom left square is formed by a line that runs along y=0, a line perpendicular to this at x=-.75. Another line runs parallel to the y=0 line from (-.75,-1) to (0,-1)Finally there is another line running vertically along x=0 from (0,-1) to (0,1). To the right of the top of this line there is a line running parallel to the y axis from (0,1) to (.75,1), and then another line extends down from (.75,1) to (.75,0). The First line at y=0 forms the bottom of this square.
Ideal Frequency Response of an FIR Hilbert Transorm in the Passband and Lowpass Cutoff

Spline transition band design

All of the four lowpass filters described above exhibit the Gibbs phenomenon when truncated to a finite length. To remove this effect andto give a more explicit specification of the pass and stopband edges, a transition band is inserted between the pass and stopband. A transitionfunction can be placed in this band to make the total desired amplitude response a continuous function.

If we use a p t h order spline as the transition function, the effect of adding this transition band to the basic lowpass filter ideal amplitudegiven in [link] is to multiply the ideal impulse response in [link] by a the P t h power of a sinc function to give

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Digital signal processing and digital filter design (draft). OpenStax CNX. Nov 17, 2012 Download for free at http://cnx.org/content/col10598/1.6
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Digital signal processing and digital filter design (draft)' conversation and receive update notifications?

Ask