

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Given: x(n) = A 1 cos(ω 1 n + θ 1 ) + ... + Ap cos(ωpn + θp) for n = 1... 3 p
Want: To compute parameters ωi, Ai, θi, i = 1...p from {x(1)...x(3p)}.
Point: Now are given that x(n) is sum of p sinusoids, unlike nonparametric.
So problem is only to compute unknown parameters ωi, Ai, θi.
DOF: 3 p nonlinear equations in 3p unknowns. Solvable, but looks ugly.
Idea: Rewrite x(n) =
∑p
i=1[Bie
jωin
∗ i e
−jωin ] where Bi = (Ai/2)e
jθi .
This satisfies difference equation of AR order 2p with AR coefficients
A(z) = a 0 + a 1 z + ..a 2 pz
∏p
i=
(z − e
jωi )(z − e
−jωi ).
Props: z
∗ i =^
1 zi
→ A(z) = z
2 p A(1/z) → ai = a 2 p−i. Also note a 0 = a 2 p = 1.
∑ 2 p
i=0 aix(n^ −^ i) = 0 for 2p^ + 1^ ≤^ n^ ≤^4 p^ (2p^ initial conditions).
Toeplitz Write as the Toeplitz system of equations (constant along diagonals)
system:
x(2p) x(2p − 1)... x(1)
x(2p + 1) x(2p) · · · x(2)
.
..
x(4p − 1) x(4p − 2) · · · x(2p)
a 1
a 2 . . .
a 2 p
x(2p + 1)
x(2p + 2)
. . .
x(4p)
But: ai = a 2 p−i, a 0 = a 2 p = 1 →only need p equations→need {x(1)...x(3p)}.
Matrix: Toeplitz+Hankel (constant along diagonals+antidiagonals).
Ex: x(n) = cos(
π 2
n) + 2 cos(
π 4
n), n = 0, 1 , 2 , 3 , 4 , 5 (can use these as well).
Matrix:
x(3) x(2) x(1) x(0)
x(4) x(3) x(2) x(1)
x(5) x(4) x(3) x(2)
x(6) x(5) x(4) x(3)
a 1
a 2
a 3
a 4
x(4)
x(5)
x(6)
x(7)
which becomes
using ai = a 2 p−i
Here:
a 1
a 2
a 1
a 2
Poly: [a 0 , a 1 , a 2 , a 3 , a 4 ] = [1, −
2 , 1] using a 3 = a 1 and a 4 = a 0 = 1.
Modes: Roots of polynomial: z = e
±jπ/ 2 , e
±jπ/ 4 → ω 1 = π/ 2 , ω 2 = π/4.
Get Ai: x(n) = C 1 cos(
π 2
n) + S 1 sin(
π 2
n) + C 2 cos(
π 4
n) + S 2 sin(
π 4
n).
Solve:
√ 2 2
√ 2 2 − 1 0 0 1
0 − 1 −
√ 2 2
√ 2 2
x(0)
x(1)
x(2)
x(3)
Note: Nonlinear problem→nonlinear problem (roots) we know how to solve.
Given: y(n) = A cos(ωon) + w(n); A and ωo are both unknown.
Noise: w(n) is 0-mean white noise (if you’ve taken EECS 401); 1 N
i w(i)w(i^ −^ n)^ ≈^ σ
2 δ(n) (if you haven’t taken 401).
Goal: To determine the unknown A and ωo from the {y(n)}.
Using: ARMA difference eqns, ZIR, modes, 1-sided z-transform,
poles and zeros, autocorrelation, cross-correlation.
Idea: x(n) = cos(ωon)u(n) is ZIR of AR(2) difference eqn.:
AR(2): x(n + 2) = 2 cos(ωo)x(n + 1) − x(n) with x(1) = cos(ωo), x(0) = 1:
1-sided: [z
2 X(z) − x(0)z
2 − x(1)z] = 2 cos(ωo)[zX(z) − x(0)] − X(z) →
ZIR: X(z) =
1 −cos(ωo )z−^1 1 −2 cos(ωo)z−^1 +z−^2
→ x(n) = cos(ωon)u(n) (text p.174, 200).
Modes: Modes (and poles) at z = e
±jωo on the unit circle (see also p.353).
ARMA: Substitute Ax(n) = y(n) − w(n) in AR(2) difference eqn.:
[y(n + 2) − w(n + 2)] = 2 cos(ωo)[y(n + 1) − w(n + 1)] − [y(n) − w(n)] →
y(n+2)−2 cos(ωo)y(n+1)+y(n) = w(n+2)−2 cos(ωo)w(n+1)+w(n).
ARMA(2,2) difference equation in observations y(n) and noise w(n).
Cross-correlate ARMA(2,2) with y(n) (convolve with y(−n)):
ryy (n + 2) −2 cos(ωo)ryy (n+1)+ryy (n) ≈ rwy (n+2)−2 cos(ωo)rwy (n+1)+rwy (n).
Assume: rwy (n) = rwx(n) + rww (n) ≈ σ
2 δ(n) (x and w uncorrelated).
Need EECS 401 to justify this, but does happen if N large enough.
Matrix: Arrange above for n = 0, − 1 , −2 as Toeplitz matrix equation
ryy (0) ryy (1) ryy (2)
ryy (1) ryy (0) ryy (1)
ryy (2) ryy (1) ryy (0)
−2 cos(ωo)
1
(^) = σ^2
−2 cos(ωo)
1
σ
2 is (unknown) eigenvalue of Toeplitz matrix with
associated (unknown) eigenvector [1, −2 cos(ωo), 1]
T .
Can show σ
2 is minimum eigenvalue of Toeplitz matrix.
Example: We compute ryy (0) = 3, ryy (1) = 1, ryy (2) = 0 from the data {y(n)} :
p.949 ryy (0) ≈
1 N
y(i)
2 ; ryy (1) ≈
1 N
y(i)y(i−1); N = #data points.
Matrix:
(^) has eigenvalues 3 ±
2 and 3 (Matlab: eig).
Minimum eigenvalue 3 −
2 has eigenvector [1, −
T .
−2 cos(ωo) = −
2 → ω = ±π/ 4 → poles at e
±jπ/ 4 .
Soln: Frequency ωo = π/4; σ
2 = 3 −