Documente Academic
Documente Profesional
Documente Cultură
Collection of Formulas
M. Dahl
S. Johansson
M. Winberg
Contents
1 Basic Relationships and Concepts
1.1 Standard Signals . . . . . . . . . . . . . . . . . . . . .
1.1.1 Continuous Functions . . . . . . . . . . . . . . .
1.1.2 Discrete Time Functions . . . . . . . . . . . . .
1.2 SISO systems (Single input, single output)
Discrete Time Systems . . . . . . . . . . . . . . . . . .
1.2.1 FIR Filters . . . . . . . . . . . . . . . . . . . .
1.2.2 IIR Filters . . . . . . . . . . . . . . . . . . . . .
1.2.3 IIR Canonical form - Direct Form I . . . . . . .
1.2.4 IIR Canonical form - Direkt Form II . . . . . .
1.3 Some Methods of Calculation . . . . . . . . . . . . . .
1.3.1 Convolution . . . . . . . . . . . . . . . . . . . .
1.3.2 State-Space Model of Dierence Equation . . .
1.3.3 State-Space Equation . . . . . . . . . . . . . . .
1.3.4 System Function . . . . . . . . . . . . . . . . .
1.4 Analogue Sinusoidal Signal
through Linear, Causal Filter . . . . . . . . . . . . . .
1.4.1 Complex, Non-causal Input Signal . . . . . . . .
1.4.2 Complex, Causal Input Signal . . . . . . . . . .
1.4.3 Real, Non-causal Input Signal . . . . . . . . . .
1.4.4 Real, Causal Input Signal . . . . . . . . . . . .
1.5 Discrete Time Sinusoidal Signal
through Linear, Causal Filter . . . . . . . . . . . . . .
1.5.1 Complex, Non-Causal Input Signal . . . . . . .
1.5.2 Complex, Causal Input Signal . . . . . . . . . .
1.5.3 Real, Non-Causal Input Signal . . . . . . . . . .
1.5.4 Real, Causal Input Signal . . . . . . . . . . . .
1.6 Fourier Series Expansion . . . . . . . . . . . . . . . . .
1.6.1 Continuous Time . . . . . . . . . . . . . . . . .
1.6.2 Discrete Time . . . . . . . . . . . . . . . . . . .
1.7 Fourier Transformer . . . . . . . . . . . . . . . . . . . .
1.8 Discrete Fourier Transform (DFT) . . . . . . . . . . . .
1.8.1 Denition . . . . . . . . . . . . . . . . . . . . .
1.8.2 Circular Convolution . . . . . . . . . . . . . . .
1.8.3 Non-Circular Convolution using DFT . . . . . .
1.8.4 Relation to the Fourier Transform X(f ): . . . .
1.8.5 Relation to Fourier Series . . . . . . . . . . . .
1.8.6 Parsevals Theorem . . . . . . . . . . . . . . . .
1.9 Some Window Functions and their Fourier Transforms
2 Sampling Analogue Signals
2.1 Sampling and Reconstruction . . . . . . . . . .
2.2 Measures of Distortion . . . . . . . . . . . . . .
2.2.1 Folding distortion when sampling . . . .
2.2.2 Periodic Distortion when Reconstructing
1
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. . . . . . .
. . . . . . .
. . . . . . .
3
3
3
3
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
4
4
5
5
6
6
6
6
7
7
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
8
8
8
8
8
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
10
10
10
10
10
12
12
12
13
14
14
14
14
14
15
15
16
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
18
18
20
20
20
2.3
2.4
Quantizing Distortion . . . . . . . . . . . . . . . . . . . . . . . . . .
Decimation and Interpolation . . . . . . . . . . . . . . . . . . . . .
3 Analogue Filters
3.1 Filter Approximations if ideal LP lters . . . .
3.1.1 Butterworth Filters . . . . . . . . . . .
3.1.2 Chebyshev Filters . . . . . . . . . . . .
3.2 Frequency Transformations of Analogue Filter
4 Discrete Time Filters
4.1 FIR Filters and IIR Filters . . . . . . . . . .
4.2 Construction of FIR Filter . . . . . . . . . .
4.2.1 FIR Filter using the window method
4.2.2 Equiripple FIR Filter . . . . . . . . .
4.2.3 FIR Filters using Least-Squares . . .
4.3 Constructing IIR Filters starting from
Analogue Filters . . . . . . . . . . . . . . .
4.3.1 The Impulse-Invariant Method . . . .
4.3.2 Bilinear Transformation . . . . . . .
4.3.3 Quantizing of Coecients . . . . . .
4.4 Lattice Filters . . . . . . . . . . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
21
21
.
.
.
.
22
22
22
24
29
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
30
30
30
30
34
34
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
35
35
35
36
36
5 Correlation
38
6 Spectrum Estimation
39
A Basic Relationships
A.1 Trigonometrical formulas . . . . . . . . . . . . . . . . . . . . . . . .
A.2 Some Common Relationships . . . . . . . . . . . . . . . . . . . . .
A.3 Matrix Theory . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
43
43
44
44
B Transforms
B.1 The Laplace Transform . . . . . . . . . . . . . . . . . . .
B.1.1 The Laplace transform of causal signals . . . . . .
B.1.2 One-sided Laplace transform of non-causal signals
B.2 The Fourier Transform of a Continuous Time Signal . . .
B.3 The Z-transform . . . . . . . . . . . . . . . . . . . . . .
B.3.1 The Z-transform of causal signals . . . . . . . . .
B.3.2 Single-Sided Z-transform of non-causal signals . .
B.4 Fourier Transform for Discrete Time Signal . . . . . . . .
B.5 Some DFT Properties . . . . . . . . . . . . . . . . . . .
46
46
46
47
48
50
50
51
52
54
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
1
1.1
1.1.1
T is the period time for a perodic function f (t), where t [s] is the time variable
= 2F [rad/s], F [Hz] is the frequency.
Angular frequency = 2
T
a) Impulse Function
(t) =
+ t = 0
0 t=
0
(t)dt = 1
b) Step Function
u(t) =
c) Ramp Function
r(t) =
1 t0
0 t<0
t t0
0 t<0
d) Rectangular Pulse
p(t) =
|t| <
1
2
0 |t| >
1
2
e) Sinc Function
t
sinc t = sin
t
f ) Periodic Function
f (t) = f (t + T ) where T = 0
sin T2t
diric(t, T ) =
T sin 2t
est = et ejt
1.1.2
N is the period time (integer) for a periodic function f (n), where n is a discrete
= 2f [rad], f is
time index (integer). Normalized angular frequency = 2
N
normalized frequency.
3
a) Unit Pulse
(n) =
b) Unit Step
u(n) =
c) Ramp
r(n) =
1 n=0
0 n=
0
1 n0
0 n<0
n n0
0 n<0
1 |n| < n1
d) Rectangular Pulse
p(n) =
0 |n| > n1
e) Sinc Function
sin N2n
sindN (n) =
N sin n
2
f ) Periodic Signal
f (n) = f (n + N ) where N = 0
esn = en ejn
1.2
1.2.1
y(n) =
bk x(n k)
k=0
1.2.2
IIR Filters
y(n) =
ak y(n k)
k=1
1.2.3
y(n) =
ak y(n k) +
k=1
M
k=0
bk x(n k)
1.2.4
b0
y(n)
z -1
-a 1
b1
v N (n)
z -1
v N-1 (n)
-a 2
b2
-a N-1
bN-1
z -1
-a N
y(n) =
bN
v (n)
1
ak y(n k) +
k=1
1.3
1.3.1
h(k)x(n k) =
k=
1.3.2
bk x(n k)
k=0
h(n k)x(k)
k=
If
y(n) =
ak y(n k) +
k=1
bk x(n k)
k=0
where
F=
0
..
.
...
0
..
.
0
..
.
0
0
0
1
ak ak1 . . . a2 a1
gT = (bk , . . . , b2 , b1 ) b0 (ak , . . . , a2 , a1 ) ;
q=
0
0
..
.
1
d = b0
1.3.3
State-Space Equation
a) Direct Solution
T
y(n) = g F v(0) +
n
n1
k=0
b) Impulse Function
h(n) = gT Fn1 qu(n 1) + d(n)
c) System Function
1.3.4
System Function
H(z) =
Y(z)
b0 + b1 z 1 + + bM z M
=
X (z)
1 + a1 z 1 + + aN z N
1.4
1.4.1
=0
h( )x(t )d =
=0
stationary
1.4.2
Y (s) = H(s)X(s) =
T (s)
1
=
N (s) s j0
X(s) =
1
s j0
T1 (s)
1
+ H(s)|s=j0
N (s)
s j0
stationary
transient
y(t) = transient + H(s)|s=j0 ej0 t
stationary
1.4.3
=0
h( )x(t )d =
<t<
1
h( ) (ej0 (t ) + ej0 (t ) )d =
2
=0
stationary
1.4.4
Y (s) = H(s)X(s) =
T (s)
s
=
2
N (s) s + 20
X(s) =
s2
s
+ 20
T1 (s)
C1 s + C0
+ 2
N (s)
s + 20
transient
stationary
C0
sin(0 t) =
0
stationary
stationary
1.5
1.5.1
y(n) =
h(k)x(n k) =
k=0
1.5.2
k=0
stationary
Y (z) = H(z)X(z) =
T (z)
1
=
N (z) 1 ej0 z 1
X(z) =
1
1 ej0 z 1
1
T1 (z)
+ H(z)|z=ej0
N (z)
1 ej0 z 1
stationary
transient
stationary
1.5.3
y(n) =
h(k)x(n k) =
k=0
<n<
1
h(k) (ej0 (nk) + ej0 (nk) ) =
2
k=0
stationary
1.5.4
Y (z) = H(z)X(z) =
X(z) =
1 cos 0 z 1
T (z)
=
N (z) 1 2 cos 0 z 1 + z 2
1 cos 0 z 1
1 2 cos 0 z 1 + z 2
T1 (z)
C0 + C1 z 1
+
N (z)
1 2 cos 0 z 1 + z 2
transient
10
stationary
C1 + C0 cos(0 )
sin(0 n) =
sin(0 )
stationary
= transient + |H(z)|z=ej0 cos(0 n + arg{H(z)|z=ej0 })
stationary
11
1.6
Continuous Time
ck ej2kF0 t
k=
where
1
1
ck =
f (t)ej2kF0 t dt ; F0 =
T0 T0
T0
|ck | cos(2kF0 t + k ) =
k=1
k=1
where
1
f (t)dt
T0 T0
2
= 2|ck | cos k =
f (t) cos(2kF0 t)dt
T0 T0
2
= 2|ck | sin k =
f (t) sin(2kF0 t)dt
T0 T0
a0 = c 0 =
ak
bk
1
|f (t)|2 dt =
|ck |2
T0 T0
k=
|ck |2 = a20 +
k=1
1.6.2
1
(a2k + b2k )
2 k=1
Discrete Time
N
1
ck ej2k
k=0
12
n/N
where
ck =
1
1 N
f (n) ej2k
N n=0
n/N
k = 0, . . . , N 1
The series expansion is often written using DTFS (Discrete-Time Fourier Series).
If f (n) is real this can also be expressed as
kn
f (n) = c0 + 2
|ck | cos 2
+ k =
N
k=1
= a0 +
L
k=1
where
a0 = c 0
ak = 2|ck | cos(k )
bk = 2|ck | sin(k )
N
if N even
2
L=
N 1
if N odd
2
The power is given by
P =
1
N
1
1 N
|f (n)|2 =
|ck |2
N n=0
k=0
N
1
|f (n)|2 = N
n=0
1.7
N
1
|ck |2
k=0
Fourier Transformer
j2F t
dt
Xa (F ) = xa (t)e
xa (t)
X(f )
Xa (F )ej2F t dF
x(n)
kn
kn
ak cos 2
bk sin 2
N
N
n=
1/2
1/2
13
x(n)ej2f n
X(f )ej2f n df
1.8
1.8.1
Denition
Xk = DF T (xn ) =
xn = IDF T (Xk ) =
Note:
N
1
1
N
N
1
xn ej2nk/N
n=0
N
1
Xk ej2nk/N
k = 0, 1, . . . , N 1 Transform
n = 0, 1, . . . , N 1
Inversion
k=0
k0
j2 k
N n = N (k k0 , (modulo N ))
e
n=0
1.8.2
Circular Convolution
xn N y n =
N
1
DFT
x yn Xk Yk
Circular convolution
=0
where
denotes circular convolution. This means that the sequences xn and yn
should be repeated periodically before the summation. I.e. outside the interval
n = 0, 1, . . . , N 1, xnN = xn and ynN = yn ( = integer) In other words, the
index is calculated modulo N . Circular convolution is also denoted x(n) y(n).
1.8.3
y = IDFT(Xk Yk ) n = 0, 1, . . . , N 1
x
xy =
Else
where
Xk = DFT(x(n))
Yk = DFT(y(n))
1.8.4
=
14
x(n N )
1.8.5
k
N
= Xk = DF T (x(n)) = N ck
if
0nN 1
x(n) = xp (n),
where
xp (n) =
N
1
nk
ck ej2 N
<n<
k=0
and
ck =
1.8.6
1
nk
1 N
xp (n)ej2 N
N n=0
k = 0, 1, . . . , N 1
Parsevals Theorem
N
1
n=0
x(n)y (n) =
1
1 N
Xk Y (k)
N k=0
15
1.9
i) The window functions are centered around the origin (odd lter length M ),
i.e. the functions are not equal to zero only for (M 1)/2 n (M 1)/2
Rectangular window:
wrect (n) = 1
sin(f M )
M sin(f )
Wrect (f ) = M
Bartlett window (Triangular window):
w(n) = 1
M
W (f ) =
2
|n|
(M 1)/2
sin f2M
M
sin(f )
2
2
f
2
2
Wrect
M
2
if f is small
Hanning Window:
2n
w(n) = 0.5 + 0.5 cos
M 1
W (f ) = 0.5 Wrect (f ) +
1
+
M 1
1
+0.25 Wrect f +
M 1
+0.25 Wrect f
Hamming Window:
2n
w(n) = 0.54 + 0.46 cos
M 1
W (f ) = 0.54 Wrect (f ) +
1
+
M 1
1
+0.23 Wrect f +
M 1
+0.23 Wrect f
Blackman window:
w(n) = 0.42 + 0.5 cos
2n
4n
+ 0.08 cos
M 1
M 1
W (f ) = 0.42 Wrect (f ) +
+0.25 Wrect f
16
1
+
M 1
1
+
M 1
2
+0.04 Wrect f
+
M 1
2
+0.04 Wrect f +
M 1
+0.25 Wrect f +
Kaiser window:
w(n) =
I0 1 [2n/(M 1)]2
I0 ()
I0 (x) = 1 +
2
L
(x/2)k
k=1
17
k!
2
2.1
Sampling Theorem
If xa (t) is bandlimited, i.e. Xa (F ) = 0 for |F | 1/2T then
xa (t) =
x(n)
sin
n=
(t nT )
(t nT )
Sampling
x(n) = xa (nT ) ;
F
X(f ) = X
Fs
F
(f ) =
Fs
T =
= Fs
1
Fs
Xa (F kFs )
k=
a (F kFs )
= Fs
k=
Reconstruction (ideal)
(t nT )
(t nT )
n=
F
1
Fs
Xa (F ) =
X
|F |
Fs
Fs
2
1
Fs
F
|F |
a (F ) =
Fs
Fs
2
xa (t) =
x(n)
sin
F
1
sin(F T ) j2F T
2 H
X
e
Xa (F ) =
LP (F )
Fs
Fs
F T
2
1
F sin(F T )
|HLP (F )|2
a (F ) =
Fs
Fs
F T
18
T
-Fs/2
x(n)
S d( t-n T)
n
Fs/2
ya (t)
x(1) T
F
|X( ) T |
Fs
| X(f)|
f
-.5
y (t)
a
F
-Fs/2
.5
Fs/2
ya (t) =
|Y (F)|
a
x(n)
n=
F
1
Ya (F ) =
X
Fs
Fs
-Fs/2
sin
Fs/2
(t nT )
(t nT )
Fs
|F |
2
Lowpass
hSH (t)
x(n)
ya (t)
1
-Fs/2
Fs/2
S d( t-n T)
n
y (t)
a
x(n)
F
|X( ) H (F)|
Fs
SH
| X(f)|
f
-.5
.5
F
-Fs/2
Ya (F ) =
|Y (F)|
a
Fs/2
F
1
sin(F T ) j2F
e
X
Fs
Fs
F T
19
-Fs/2
T
2
HLP (F )
Fs/2
2.2
2.2.1
Measures of Distortion
Folding distortion when sampling
Fs Fp
Fp
0
in (F )dF
in (F )dF
where 0 Fp Fs /2
Signal distortion relationship:
A: SDRA =
Fp
in (F )dF
= 0
DS
DA
Fs Fp
0
B: SDRA
= min|F |Fp
in (F )dF
in (F )
in (Fs F )
2.2.2
in (Fp )
in (Fs Fp )
Periodic Distortion:
DP = 2
Eective signal power:
DS = 2
Fs /2
Fs /2
0
ut (F )dF
ut (F )dF
SDRP =
DS
DP
Fs /2
ut (F )dF
= 0
Fs /2
ut (F )dF
ut (F )
ut (Fs F )
ut (Fp )
ut (Fs Fp )
2.3
Quantizing Distortion
2
DQ
Signal Power
Dq
Quantizing distortion for sinusoidal signal, maximum dynamical range used, r bits
SQNR = 1.76 + 6 r[dB]
Quantizing distortion, dynamical range usage expressed in top- and RMS value, r
bits
Apeak
2
V
1010 log
Apeak
2.4
Downsampling a factor M
M
1
M
M 1
i=0
f i
M
Upsampling a factor L
L
L-1 st
L-1 st
W (f ) = X(f L)
21
2
Analogue Filters
3.1
|H()| =
1 + gN
where
= 2F
2
< 1
2
1
gN
1
> 1
p
Butterworth Filters
K
|H()| =
1+
2N
|H()| =
1+
p
2N
Filter order:
N=
log10
1
22
log10
1 /
s
p
2 is the maximum allowed value for the amplitude function at the stop band edge:
2 = |H(s )|max
The denominator of the system function is a Butterworth polynomial if p = 1.
These polynomials can be found in Table 2.1. For a general p
H(s) =
s
p
N
+ aN 1
s
p
N 1
23
+ + a1
s
p
+1
Table 4.1
Coecients a in Butterworth polynomials sN + aN 1 sN 1 + . . . + a1 s + 1
N
1
2
3
4
5
6
7
8
a1
a2
a3
a4
a5
a6
a7
2
3.414
5.236
7.464
10.103
13.138
2.613
5.236
9.141
14.606
21.848
3.236
7.464
14.606
25.691
3.864
10.103
21.848
4.494
13.138
5.126
2
2
2.613
3.236
3.864
4.494
5.126
Table 4.2
Factorized Butterworth polynomials for p = 1. For p = 1 let s s/p .
N
1
2
3
4
5
6
7
8
3.1.2
(s + 1)
(s2 + 2s + 1)
(s2 + s + 1)(s + 1)
(s2 + 0.76536s + 1)(s2 + 1.84776s + 1)
2
(s + 1)(s2 + 0.6180s + 1)(s
+ 1.6180s + 1)
|H( )|
Ripple
K
K
1+ 2
K
1 + 2 TN2
N odd
N even
p
Not necessary the 3 dB frequency
K a0
H(s) =
s
p
N
N odd
N even
1
1+2
+ aN 1
s
p
N 1
+ + a0
cos(N arccos )
TN () =
or
TN () =
|| 1
= 2F
cosh(N arccosh) || 1
N
2 1
+ +
N
2 1
Recursive calculation
TN +1 () = 2TN () TN 1 ()
Filter order:
arccosh
N=
1
22
arccosh
1 /
s
p
arccosh(x) = ln x +
25
x2 1
|| 1
N
0
1
2
3
4
5
6
7
8
9
10
TN ()
1
22 1
43 3
84 82 + 1
165 203 + 5
326 484 + 182 1
647 1125 + 563 7
1288 2566 + 1604 322 + 1
2569 5767 + 4325 1203 + 9
51210 12808 + 11206 4004 + 502 1
26
27
a1
1.426
1.535
1.025
0.752
0.432
0.282
0.152
a1
1.098
1.238
0.743
0.580
0.307
0.214
0.107
a1
0.804
1.022
0.517
0.459
0.210
0.166
0.073
a1
a0
2.863
1.516
0.716
0.379
0.179
0.095
0.045
0.024
a0
1.965
1.102
0.491
0.276
0.123
0.069
0.031
0.017
a0
1.307
0.823
0.327
0.206
0.082
0.051
0.020
0.013
a0
1.002
0.645 0.708
0.928 0.251
0.405 0.177
0.408 0.063
0.163 0.044
0.146 0.016
0.056 0.011
28
8
-0.044
j1.005
-0.124
j0.852
-0.186
j0.570
-0.220
j0.200
8
-0.035
j0.996
-0.100
j0.845
-0.149
j0.564
-0.176
j0.198
8
-0.026
j0.990
-0.075
j0.839
-0.113
j0.561
-0.133
j0.197
8
-0.021
0.987
-0.061
j0.836
-0.092
j0.559
-0.108
j0.196
3.2
1. Start out from the frequencies in the lter specication in the analogue high
pass-, band pass- or band stop lter.
LP
()
HP
BP
()
2 3
()
3 2
HP LP 2 =
BS LP
2 =
LP
3 =
2 = 2 1
()
3 l 2 4
1
2
BP LP
BS
1
3
1 2 = 3 4 = 2I
3 = 4 3
2I
4 3
3 =
2I
2 1
1 2 = 3 4 = 2I
HP
BP
s + sI
29
3 l 2 4
BS
2I
s + sI
4
4.1
IIR Filter
b0 + b1 z 1 + . . . + bM z M
1 + a1 z 1 + . . . + aN z N
h(n) = Z 1 {H(z)}
H(z) =
4.2
4.2.1
Impulse response
h(n) = hd (n) w(n)
with desired impulse response hd (n) and time window w(n).
Filters designed using the window method have linear phase.
Desired impulse response hd (n) dened for 0 n M 1
Odd lter length
Low pass:
M 1
c sin c n 2
hd (n) =
c n M 1
hd (
c
M 1
) =
2
ej
Hd () =
0
(M 1)/2
0 || < c
Else
High pass:
M 1
M 1
c sin c n 2
hd (n) = n
2
c n M 1
2
Hd () =
ej
0
(M 1)/2
30
c < || <
Else
Band pass:
hd (n) = 2 cos 0
Hd () =
ej
0
M 1
n
2
(M 1)/2
M 1
c sin c n 2
c n M 1
2
0 c < || < 0 + c
Else
Band stop:
M 1
M 1
hd (n) = n
2 cos 0 n
2
2
Hd () =
ej
0
(M 1)/2
M 1
c sin c n 2
c n M 1
2
Largest sidelobe
relative main lobe
(dB)
-13
-27
-32
-43
-58
Table 5.2
Sidelobe size for some lters designed using the window method.
Approximate
Window
largest sidelobe
(dB)
Rektangulr
-20
Bartlett
-27
Hanning
-40
Hamming
-50
Blackman
-70
Kaiser ( = 4.54)
-50
Kaiser ( = 6.76)
-70
Kaiser ( = 8.96)
-90
31
n M21
M 1
2
Hanning window
2 n
= 0.5
M 1
2
M 1
2n
M 1
1 cos
Hamming window
2 n
M 1
2
M 1
2n
= 0.54 0.46 cos
M 1
Blackman window
2 n
4 n
M 1
+0.08 cos
M 1
2
M 1
2
M 1
2n
4n
+ 0.08 cos
M 1
M 1
Kaiser window
w(n) =
I0 1 [2(n
M 1
)/(M
2
1)]2
I0 ()
2
L
(x/2)k
k=1
k!
32
D 21dB
0
21dB < D < 50dB
0, 5842(D 21)0,4 + 0, 07886(D 21)
D 50dB
0, 1102(D 8, 7)
Filter length M :
M
D 7, 95
14, 36f
f = fs fp
fp Pass band frequency (normalized frequency)
fs Stop band frequency (normalized frequency)
33
4.2.2
|H(f)|
1+ d p
1
1- d p
ds
f
fp
Filter length M =
fs
20 log10
p s 13
14.6f
+1
f = fs fp
4.2.3
Minimizing
E=
yields
M
1
n=0
and
Emin = rdd (0)
M
1
h(k)rdx (k)
k=0
where rxx () is the correlation function for x(n) and rdx () is the cross correlation
between d(n) and x(n).
This can be written on matrix form as
Rxx h = rdx
h = R1
xx rdx
Emin = rdd (0) hT rdx
34
4.3
4.3.1
H(z) =
ha (nT )z n
n=0
1.
ha (t) = e0 t Ha (s) =
1
s + 0
H(z) =
e0 T z 1
2.
ha (t) = e0 t cos 0 t Ha (s) =
s + 0
(s + 0 )2 + 20
1 z 1 e0 T cos 0 T
H(z) =
1 2z 1 e0 T cos 0 T + z 2 e20 T
3.
ha (t) = e0 t sin 0 t Ha (s) =
H(z) =
4.3.2
0
(s + 0 )2 + 20
z 1 e0 T sin 0 T
1 2z 1 e0 T cos 0 T + z 2 e20 T
Bilinear Transformation
tan
T
2
35
( = 2f )
4.3.3
Quantizing of Coecients
pi
pi
a1 + +
ak
a1
ak
k1
factors
4.4
Lattice Filters
f0 (n)
f1 (n)
K1
x(n)
g0(n)
...
K2
K1
z -1
f2(n)
g1(n)
K
K2
z -1
fM-1(n) = y(n)
...
z -1
g2(n)
+
M
(n)
-1
Lattice FIR
x(n)
f N(n)
+
-
f N-1(n)
f (n)
... 2
f 1(n)
+
-
KN
z -1
...
f N(n)
gN (n)
+
-
f N-1(n)
KN
KN
z -1
K1
+
z -1
g2 (n)
Lattice all-pole IIR
f (n)
... 2
-
g0(n)
f0(n)
+
K1
K2
z -1
g1 (n)
K1
+
g0(n)
v0
z -1
v1
v2
...
z -1
K2
g (n)
... 2
+
vN
g1 (n)
f 1(n)
+
-
f0(n) = y(n)
K1
K2
gN (n)
x(n)
K2
KN
+
y(n)
+
Lattice-ladder
36
1
AN (z)
AM 1 (z) = AN (z)
Lattice-Ladder
Conversion from Direct form to Lattice-Ladder:
H(z) =
CM (z)
c0 + c1 z 1 . . . cM z M
=
AN (z)
AN (z)
Correlation
=
=
=
=
=
=
=
=
=
=
h(t) x(t)
H(F ) X(F )
rhh ( ) rxx ( )
|H(F )|2 Rxx (F )
h( ) rxx ( )
H(F
) Rxx (F )
x(t)x(t )dt
t
t y(t)x(t )dt
E{x(t)x(t )}
E{y(t)x(t )}
y(n)
Y (f )
ryy (n)
Ryy (f )
ryx (n)
Ryx (f )
rxx (n)
ryx (n)
xx (n)
yx (n)
=
=
=
=
=
=
=
=
=
=
h(n) x(n)
H(f ) X(f )
rhh (n) rxx (n)
|H(f )|2 Rxx (f )
h(n) rxx (n)
H(f ) Rxx (f )
x()x( n)
y()x( n)
E{x()x( n)}
E{y()x( n)}
38
Spectrum Estimation
Spectrum Estimation
xx (m) = E{x(n)x(n + m)} autocorrelation
xx (f ) =
m=
1
rxx (m) =
N
Pxx (f ) =
N m1
n=0
N
1
m=N +1
rxx (m)e
j2f m
1
=
N
2
1
N
j2f m
x(m)e
m=0
Periodogram
1
Pxx (f ) =
N
E{rxx (m)} =
2
1
N
j2f m
x(m)e
m=0
|m|
1
xx (m) xx (m) when N
N
1
2
[xx
(n) + xx (n m)xx (n + m)] 0 when N
var(rxx (m))
N n=
E{Pxx (f )} =
1/2
1/2
xx ()WB (f )d
var(Pxx (f )) = 2xx (f ) 1 +
sin2f N
N sin2f
2
k
N
1
=
N
N 1
x(n)ej2
n=0
39
2 (f ) when N
xx
if x(n) Gaussian.
|m|
N
nk
N
2
k = 0, . . . , N 1
Bartletts method
Averaging periodograms.
Divide the N sample data sequence x(n) into K blocks with M samples in each
block. The blocks are not overlapping (N = K M ).
xi (n) = x(n + iM ) i = 0, 1 . . . , K 1 and n = 0, 1 . . . , M 1
1
i
Pxx
(f ) =
M
B
(f ) =
Pxx
N 1
2
j2f m
x
i (m)e
i = 0, 1 . . . , K 1
m=0
1 K1
P i (f )
K i=0 xx
1 K1
i
i
E{Pxx
(f )} = E{Pxx
(f )}
K i=0
1 1/2
i
E{Pxx (f )} =
xx ()WB (f )d
M 1/2
B
E{Pxx
(f )} =
B
var(Pxx
(f )) =
sin f M
sin f
2
1 K1
i
var(Pxx
(f ))}
2
K i=0
B
(f ))
var(Pxx
|m|
N
1 2
sin2f N
=
xx (f ) 1 +
K
N sin2f
2
Welchs method
Averaging modied periodograms.
Divide the N sample data sequence x(n) into L block with M samples in each
block. The blocks may be overlapping. The starting point for block i is given by
iD. D = M means no block overlap and D = M/2 yields 50% overlap.
xi (n) = x(n + iD) i = 0, 1 . . . , L 1 and n = 0, 1 . . . , M 1
40
Modied periodogram.
i
Pxx
(f )
1
=
MU
w(n)
2
1
N
j2f m
x
(m)w(n)e
i
i = 0, 1 . . . , L 1
m=0
window function
U =
1
1 N
w2 (n)
M n=0
W
(f ) =
Pxx
1 L1
P i (f )
L i=0 xx
W
(f )} =
E{Pxx
i
(f )} =
E{Pxx
1 L1
i
i
E{Pxx
(f )} = E{Pxx
(f )}
L i=0
1/2
1/2
1
W (f ) =
MU
xx ()W (f )d
M 1
2
w(n)ej2f n
n=0
No block overlap (L = K)
W
var(Pxx
(f )) =
1
i
(f ))}
var(Pxx
L
1 2
(f )
L xx
41
9 2
(f )
8L xx
Averaging Periodograms
Quality factor
Q=
[E{Pxx (f )}]2
var(Pxx (f ))
Relative variance Q1
Q time-bandwidth product.
f =
0.9
M
Q=1
Bartlett (N = K M ) f =
0.9
M
Q=
N
M
Welch (N = L M )
f =
1.28
M
Q=
16
9
Welch (N = L M )
f =
1.50
M
Q=
3
1.082
Welch
f =
1.50
M
Q=
3
2
N
M
Hanning window
62,5% overlap
Blackman/Tukey
f =
0.6
M
Q=
1
2
N
M
Rectangular window
f =
0.9
M
Q=
3
2
N
M
Triangular window
Periodogram
Rectangular window
No overlap
N
M
Triangular window
50% overlap
N
M
Hanning window
50% overlap
The resolution f is calculated at the -3dB points from the main lobe of the
window.
42
A
A.1
Basic Relationships
Trigonometrical formulas
sin = cos( /2)
cos = sin( + /2)
cos2 + sin2 = 1
cos2 sin2 = cos 2
2 sin cos = sin 2
sin() = sin
cos() = cos
cos2 = 12 (1 + cos 2)
sin( + ) = sin cos + cos sin
cos( + ) = cos cos sin sin
2 sin sin = cos( ) cos( + )
2 sin cos = sin( + ) + sin( )
2 cos cos = cos( + ) + cos( )
cos
sin + sin = 2 sin +
2
2
1
2
(ej + ej ), sin =
1
2j
A cos + B sin =
where cos =
A2 + B 2 cos( )
A
,
A2 +B 2
sin =
arctan A
and =
if A 0
arctan B
+
A
A cos + B sin =
where cos =
B
,
A2 +B 2
sin =
A
arctan B
+
43
if A < 0
A2 + B 2 sin( + )
arctan B
and =
B
A2 +B 2
A
A2 +B 2
if B 0
if B < 0
Degrees Rad
0
30
45
60
90
A.2
sin
cos
tan
cot
0
1
2
1
2
3
2
1
0
1
3 1
3
2
3
1
1
1
2
1
3 1
2
3
0 0
N
1
an =
n=0
1aN
1a
if a = 1
if a = 1
j2 kn/N
n=0
A.3
N if k = 0, N, . . .
0 Else
Matrix Theory
A=
a11
a21
..
.
a12
a22
..
.
. . . a1n
. . . a2n
..
.
x=
44
x1
x2
..
.
xn
Matrix A determinant
a11
a21
det A = |A| = ..
.
am1
a12
a22
..
.
n
=
aij (1)i+j det Mij
i=1
amn
. . . a1n
. . . a2n
..
.
am2 . . .
where Mij is the resulting matrix if row i and column j in matrix A is deleted.
det AB = det A det B
Especially, for a 22 matrix:
det A = a11 a22 a12 a21
Inverse of matrix A
A1 A = AA1 = I (if det A#0)
A1 =
1
CT
det A
where C is dened by
cij = (1)i+j det Mij
(AB)1 = B1 A1
Especially for a 22 matrix:
A1
1
=
det A
a22 a12
a21
a11
45
Transforms
B.1
B.1.1
In the table below f (t) = 0 for t < 0 (i.e. f (t) u(t) = f (t)).
1. f (t) =
1
2j
2.
+j
j
F(s)e ds
st
a f (t)
3. f (at)
4.
1
a
F(s) =
st
dt
0 f (t)e
1
a
a F (s) Linearity
F( as ) Scaling
f ( at )
5. f (t t0 ); t t0
6. f (t) eat
7.
dn f
dtn
t
sn F(s) Derivation
f ( )d
1
s
9. (t)n f (t)
dn F (s)
dsn
8.
10.
f (t)
t
F(s) Integration
Derivation in
frequency domain
F(z)dz Integration in
frequency domain
s
Initial value
theorem
F1 (s) F2 (s)
Convolution in time domain
15.
f1 (t) f2 (t)dt
0
+j
1
F1 (s)
2j j
=
F2 (s)ds
1
2j
1
2j
F1 (s) F2 (s) =
j F1 (z) F2 (s z) dz
Convolution in frequency domain
+j
Parsevals relation
46
16. (t)
17. n (t)
sn
18. 1
1s
1 tn
19. n!
20. e0 t
s +1
0
21.
B.1.2
1
sn+1
1
1
tn1 e0 t
(n 1)!
(s + 0 )n
22. sin 0 t
0
s2 + 20
23. cos 0 t
s
s2 + 20
24. t sin 0 t
20 s
(s2 + 20 )2
25. t cos 0 t
s2 20
(s2 + 20 )2
26. e0 t sin 0 t
0
(s + 0 )2 + 20
27. e0 t cos 0 t
s + 0
(s + 0 )2 + 20
28. e0 t sin(0 t + )
(s + 0 ) sin + 0 cos
2
2
(s + 0 ) + 0
Notation
F + (s) = 0
f (t)est dt
F(s) = F + (s)
Taking the derivative of f (t) yields
d
f (t)
dt
s F + (s) f (0)
dn
f (t)
dt
Single derivation
B.2
1. w(t) = F 1 {W (F )} =
j2F t
dF
W (F )e
2.
W (F ) = F{w(t)} =
j2F t
dt
w(t)e
a w (t)
a W (F )
3. w (t)
W (F )
4. W (t)
w(F )
5. w(at)
6. w(t t0 )
W (F ) ej2F t0
7. w(t) ej2F0 t
W (F F0 )
8. w (t)
W (F )
9.
dn w(t)
dtn
t
1
|a|
F
a
(j2F )n W (F )
w( )d
1
j2F
dw
dF
W1 (F ) W2 (F )
W1 (F ) W2 (F )
10.
14.
|w(t)|2 dt =
|W (F )|2 dF
W (F ) if W (F ) = 0 for F = 0
Parsevals relation
15.
w1 (t) w2 (t)dt =
W1 (F ) W2 (F )dF
16. (t)
17. 1
(F )
18. u(t)
1
j2F
1
a+j
48
1
2
(F )
2a
a2 +2
20. ea|t|
21. ej2F0 t
(F F0 )
0
20 2
1
2
j
20 2
26.
1
2 2
et
2 /2 2
1
2
{(F + F0 ) (F F0 )}
+j
1
4
{(F + F0 ) (F F0 )}
{(F + F0 ) + (F F0 )}
e()
+ 14 {(F + F0 ) + (F F0 )}
2 /2
0
(j + a)2 + (0 )2
20 (20 + a2 2 )
(2 + a2 20 )2 + 4a2 20
j + a
(j + a)2 + (0 )2
2a(20 + a2 + 2 )
( + a2 20 )2 + 4a2 20
1
a
sinc( Fa ) a > 0
1
a
rect( Fa ) a > 0
31. rect(at) =
32. sinc(at) =
1
2a
sin(at)
at
m=
w(t mT )
n= cn (t
nT )
1
|T |
comb1/T (W (F ))
rep1/T (W (F ))
49
1
n= T
cn (F Tn ) =
cn ej2nT F
B.3
The Z-transform
B.3.1
1. X (z) = Z[x(n)] =
n=
1
2j
2. x(n) = Z 1 [X (z)] =
3.
a x (n)
x(n)z n
Transform
X (z)z n1 dz
Invers transform
a X (z)
Linearity
4. x(n n0 ) z n0 X (z)
5. nx(n) z
Multiplication with n
6. an x(n) X
7. x(n) X
8.
(
n
=
d
dz
X (z)
z
a
Scaling
1
z
x()
z
z1
X (z)
Summation
9. x y X (z) Y(z)
10. x(n) y(n)
1
2j
Convolution
Y()X
z
1 d
Product
11. x(0) = limz X (z) (if the limit value exist) Initial value theorem
12. limn x(n) = limz1 (z 1)X (z)
(if the unit cirle is included in the ROC)
13.
14.
= x()y() =
=
x2 () =
1
2j
1
2j
x(z)y
1
z
z 1 dz
X (z)X (z 1 )z 1 dz
50
Sequence
Transform
x(n)
X (z)
15. (n)
16. u(n)
1
1 z 1
17. nu(n)
z 1
(1 z 1 )2
18. n u(n)
1
1 z 1
1
(1 z 1 )2
(n + 1)(n + 2) . . . (n + r 1) n
1
u(n)
(r 1)!
(1 z 1 )r
20.
1 z 1 cos
1 z 1 2 cos + 2 z 2
z 1 sin
1 z 1 2 cos + 2 z 2
23. Fn u(n)
(I z 1 F)1
B.3.2
Notation
X + (z) =
n=0
X (z) = X + (z)
x(n)z n
Shifting x(n)yields:
i) one step shift
x(n 1) z 1 X + (z) + x(1)
x(n + 1) zX + (z) x(0) z
ii) n0 step shift (n0 0)
x(n n0 ) z n0 X + (z) + x(1)z n0 +1 +
+x(2)z n0 +2 + . . . + x(n0 )
x(n + n0 ) z n0 X + (z) x(0)z n0 x(1)z n0 1 . . . x(n0 1)z
51
B.4
1. X(f ) = F(x(n)) =
j2f
=
= x()e
Transform
= 2f
1/2
a x (n)
Inverse transform
a X (f ) Linearity
4. x(n n0 )
5. x(n)ej2f0 n
1
[X(f f0 ) + X(f + f0 )]
2
Modulation
1
[X(f f0 ) X(f + f0 )]
2j
Modulation
8. x y
X(f ) Y (f ) Convolution
9. x y
10.
= x()y() =
1/2
= 1/2 X(f )Y (f )df
1/2
1/2
X() Y (f )d Product
Parsevals teorem
for real time sequences
12. (n)
13. (n n0 )
ejn0
14. 1 n
15. u(n)
52
p=
(f p)
1
1
1
+
p= (f p) +
2
2 j 2 tan(f )
f
rectp 2f
1
sin(2f1 n)
2f1 n
0 Else
Ideal LP lter
17. 4f1 sinc(2f1 n) cos(2f0 n)
rectp
f f0 + rect f + f0
p
2f1
2f1
Ideal BP Filter
(j2f )p =
0
Derivating system
19. cos(2f0 n)
20. |n|
Else
1
[(f f0 p) + (f + f0 p)]
2 p=
1 2
1 + 2 cos 2f
2
22.
M 1
1 |n|
2
M odd
pr (n) =
0 Else
Pr (f ) =
sin(f M )
Rectangular window
sin(f )
53
B.5
Frequency
X(k), Y (k)
X(k) = X(k + N )
X(N k)
X(k)ej2k1/N
X((k 1))<N >
X (N k)
X1 (k)X2 (k)
X(k)Y (k)
1
X (k) N X2 (k)
N 1
N 1
1
54