Tik-61.246 Digital Signal Processing and Filtering (DISKO)
Solutions, exercise round 6.
(H(z) is an anti-causal FIR,
.
H(z) is a lowpass filter (anti-causal moving average filter).
Maximum value of lowpass filter is reached
at
.
Because
,
we get z=1 (see figure 1).
|
[Pole-zero diagram]
[Frequency response of H(z) with K=0.2]
|
In the impulse-invariant method the target is to get impulse
response of digital filter h[n] to be the same as the
sampled impulse response of analog filter ha(nT). Because IIR
filters have normally an impulse response of infinite length,
this method brings distortion.
In the bilinear transform the whole left subspace of s-plane
is mapped into unit circle of z-plane. This is done by substituting
variables (see 2b).
The definition of the first order (N=1) analog Butterworth filter is (Sec. 5.3.2, Eq. 5.29)
where
The pole is
refers frequency in analog domain (
)
and
frequency in digital domain (
).
Keeping in mind that
and
,
we get
By inserting the values of fs=1 kHz (sampling frequency) and fc=100 Hz (cut-off frequency), we get
The transfer function is then scaled by a factor K so that the maximum
of the magnitude response will be one. We also know that the maximum is
located at zero frequency, because the frequency response of a
Butterworth filter is monotonic. Thus we get
|
[linear scale 0..1]
[desibels]
|
is inserted into system function (Eqs. 7.47)
For an analog filter, the cutoff frequency must then be altered to
where
rad/s is the desired cutoff angular
frequency.
The warped angular frequency
rad/s
is used in analog filter (see Figs. 7.7, 7.8 in Mitra).
Along with the scaling coefficient K, the transfer function of the
filter will be
All constants (related to scaling of filter to unity) can be combined, and constants grouped in function of z
Because
is constant, we can write
Now the transfer function is in standart form.
By inserting
,
we get
As earlier, the maximum of the magnitude response is at zero frequency
Thus, the frequency response will be (figure 3)
|
[linear scale 0..1]
[desibels]
|
is a mapping from Laplace plane s to z-plane (figure 7)
so that
The zero of
is
and pole s=-1.
The digital filters acquired by applying bilinear transform :
pole (omegac will not be the same as
,
use warping)
Show that the best finite-length approximation to the ideal infinite length impulse response in the mean square error sense is obtained by truncated Fourier series method.
Let the
denote the desired frequency response
function. Since
is a periodic function of
with the period
,
it can be expressed as a Fourier series:
For most practical solutions, hd is of infinite length and
noncausal. Therefore we try to find a finite-duration impulse response
sequence ht[n] of length 2M+1, whose DTFT
approximates the
in some sense. One commonly used
approximation criteria is to minimize the integral squared-error
Using Parseval's relation
It obvious from the latter form that the integral-squared error is a
minimum when
ht[n]=hd[n], for
,
that is the best
finite-length approximation to the ideal infinite-length impulse
response in the mean-square error sense is obtained by truncation.
The causality is achieved by delaying the ht[n] by M samples.
What is the disadvantage of this method and what are the solutions to this problem?
Disadvantage is the oscillatory behaviour of
(Gibbs
phenomenon). This is caused by simple truncation (window function
with abrupt transitions in time domain) and the instability of the
ideal filter. Possible solutions are the use of tapered windows (fixed
or adjustable) and specification of FIRs with smooth transitions.
Some examples of window functions:
There are three figures for each item. Top left figure is the window function in time domain w[n]. The causal version can be obtained by shifting.
Bottom left figure is the window function in frequency domain
.
The third figure in right is the amplitude frequency of actual filter which is obtained via window function method. The desired lowpass filter has normalized cut-off frequency at 0.2.
Notice that
Using the flow diagram, we get the following equations:
From the above figure we get the following expressions:
| W1 | = | KX+z-1W3 | (1) |
| W2 | = | (2) | |
| W3 | = | (3) | |
| Y | = | (4) |
Substituting the equation (3) in (1) we get
| (5) |
| (6) |
Next, substituting (2) in (4) we get
| (7) |
Then, from (6) and (7) we finally arrive at
![]() |
(8) |
Therefore
for all values of
and hence
if K=1.
Its transposed realization:
[h]
The error shaping (FIR) filter has transfer function
The frequency response of the filter is
The power spectrum of the noise has the same shape as the filter's squared amplitude response (because the noise was assumed to be white).

In this case, there is only one error source (j=1), and
.