7. Digital Filters Flashcards
What is an FIR filter?
An FIR filter is a linear discrete-time system with an impulse response of finite length.
(p. 185 - 186)
Which difference equation describes a causal time-invariat FIR filter? What is parameter bn called?
A causal time-invariant FIR filter of order N can be described by a difference equation of the type of equation 7.1. Parameters bn are called filter coefficients or filter weights.
(p. 186)
What does an FIR filtering operation come down to?
An FIR filtering operation comes down to performing a discrete linear convolution of input signal x[k] and the filter coefficients bk. Observe that equation 7.1 can be directly implemented on a microprocessor as it merely requires multiplications, additions and access to (past) input samples.
(p. 187)
Why are digital filtering and windowing considered opposite operations?
Whereas digital filtering comes down to a discrete linear convolution in the time domain, and hence, to a multiplication in the frequency domain, windowing requires a multiplication in the time domain, and therefore performs a convolution in the frequency domain.
(p. 187)
What is the length of the impulse response of an N-th order FIR filter?
What are the impulse response parameters?
The length of the impulse response of an N-th order FIR filter is N + 1. Note that the impulse response parameters of an FIR filter are equal to the filter coefficients.
(p. 187)
How can an FIR filter be described in the z-domain?
A causal time-invariant FIR filter of order N can be described in the z-domain by the transfer function of equation 7.4.
(p. 187)
What is the stability of FIR filters?
As the poles of an FIR filter are all in the origin of the complex plane, FIR filters are always stable, whatever the filter coefficients bn.
(p. 188)
What is the frequency response of an FIR filter?
The frequency response can be obtained from the transfer function by replacing z with e^j2πφ.
(p. 188)
What is a linear-phase filter?
An additional advantage of FIR filters over IIR filters is that they can be designed to offer a linear phase response, and this without loss of generality as far as the magnitude response is concerned. A filter is said to have linear phase if the phase response can be expressed as
formula 7.7
with γ and δ constant numbers, independent of φ.
(p. 189)
Why are linear-phase filters desired in many applications?
In case signal x[k] is input into a linear-phase filter all the frequency components of x[k] DTFT ←→ Xd(φ) that are in the passband of the filter are delayed by the same amount of time. If the phase response is nonlinear, however, some frequency components are delayed more than others. This introduces phase distortion and can hence severely alter the waveform of the signal.
(p. 190 - 192)
How many types of linear-phase filters are there and why?
Linear-phase filters can be obtained by imposing symmetry on the impulse response. This gives rise to four types of linear-phase filters, by varying the type of symmetry of the impulse response (even/odd) and the filter length (even/odd). Keep in mind that not all FIR filters have linear phase. Only if there is symmetry in the impulse response the FIR filter has linear phase.
(p. 193)
Which steps are performed when designing an FIR filter with the windowing method?
Make sure that you understand and can reproduce figure 7.5. You are not supposed to be able to replicate the values on the vertical axes.
How does one impose linear phase?
The basic idea behind the windowing method is to start from a desired frequency response Hideal(φ) and then find the corresponding set of filter coefficients that implement Hideal(φ). The coefficients of an FIR filter can be directly derived from the impulse response. Hence, it follows that the required filter coefficients can be obtained as the inverse discrete-time Fourier transform (IDTFT) of Hideal(φ).
Observe that there are two problems with hideal[k]. First of all, the filter is infinitely long. This means that an infinite number of calculations are required for each output sample. It is common practice to cut off the ”tails” of the sinc. This can be achieved by setting hideal[k] to zero for values of |k| that are larger than a well chosen threshold L.
A second problem is that the (length-restricted) impulse response hideal[k] is non-causal. Non-causal filters cannot be employed in real-time applications as the calculation of y[k] would require future sample values. The length-restricted sinc-like impulse response needs to be made causal. This can be done by shifting all 2L + 1 filter coefficients by L positions to the right, i.e. by delaying the filter by L sample instances.
Delaying the impulse response by L time lags is equivalent to a multiplication of the frequency response by e^-j2πφL. This leaves the magnitude response unchanged, but adds a linear term to the phase. Because the phase of Hideal(φ) is often arbitrarily set to zero as in figure 7.4, a linear-phase filter is obtained in this way.
(p. 193 - 195)
What is the Gibbs phenomenon?
How does it affect the frequency characteristics of the filter?
The cutting off of the ”tails” of the sinc leads to the well-known Gibbs phenomenon. This means that:
- a ripple appears in the passband of the filter, i.e. the gain in the passband is no longer constant and equal to 1
- a ripple appears in the stopband of the filter, i.e. unlike with Hideal(φ), the gain in the stopband is non-zero
- a transition band with bandwidth BW is created between passband and stopband
(p. 195/197)
What do passband, stopband, transition band, passband ripple, stopband ripple, stopband attenuation, transition bandwidth, passband edge and stopband edge mean?
See figure 7.6.
p. 197
What is the effect of using a windowing function other than the rectangular window on the passband and stopband ripple and on the transition bandwidth of the filter?
What does table 7.2 tell?
What happens if the filter order is increased?
Increasing the filter order apparently concentrates the ripple around the passband and stopband edge, but neither eliminates the ripple nor reduces the peak value of the ripple. Passband ripple, stopband ripple and transition bandwidth can be traded off against each other by applying other, non-rectangular windowing functions. Passband ripple and stopband attenuation levels can only be reduced by applying a smoother windowing function.
(p. 198 - 199/202)
How can we form other filters with the windowing method? (highpass, bandpass, bandstop)
The windowing method can also be applied to design filters that are not of the lowpass type. Basically, a highpass filter can be implemented as ”1 minus lowpass”, a bandpass filter as a ”lowpass with high cutoff minus lowpass with low cutoff” and a bandstop filter as ”1 minus bandpass”.
(p. 199 - 200)
Which steps are performed when designing an FIR filter with the frequency sampling method?
Make sure that you understand and can reproduce figure 7.11. You are not supposed to be able to replicate the values on the vertical axes.
The idea is to specify a desired response Hdes(φ), to discretize (sample) this response in the frequency domain, and then to do a back transformation into the time domain with the inverse discrete Fourier transform (IDFT) or, equivalently, with the inverse FFT.
More specifically, the following processing steps are performed:
- First, the desired frequency response Hdes(φ) is given the correct symmetry so that a real-valued impulse response is obtained.
- Next, the desired frequency response is discretized through equidistant sampling in the frequency domain.
- The discretized frequency response HN¯ [n] is back transformed into the time domain using the inverse discrete Fourier transform (IDFT), or a fast implementation thereof such as the real-
output inverse FFT algorithm.
(p. 201 - 202/204)