Docsity

Prony's Methods: Computing Line Spectra - Lecture Notes | EECS 451, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
EECS 451 PRONY’S METHOD: COMPUTING LINE SPECTRA
Given: x(n) = A1cos(ω1n+θ1) + ... +Apcos(ωpn+θp) for n= 1...3p
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 psinusoids, unlike nonparametric.
So problem is only to compute unknown parameters ωi, Ai, θi.
DOF: 3pnonlinear equations in 3punknowns. Solvable, but looks ugly.
Idea: Rewrite x(n) = Pp
i=1[Biej ωin+B∗
ie−jωin] where Bi= (Ai/2)ej θi.
This satisfies difference equation of AR order 2pwith AR coefficients
A(z) = a0+a1z+..a2pz2p=Qp
i=1(z−ej ωi)(z−e−jωi).
Props: z∗
i=1
zi→A(z) = z2pA(1/z)→ai=a2p−i. Also note a0=a2p= 1.
AR: P2p
i=0 aix(n−i) = 0 for 2p+ 1 ≤n≤4p(2pinitial 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)
a1
a2
.
.
.
a2p
=−
x(2p+ 1)
x(2p+ 2)
.
.
.
x(4p)
.
But: ai=a2p−i, a0=a2p= 1 →only need pequations→need {x(1)...x(3p)}.
Matrix: Toeplitz+Hankel (constant along diagonals+antidiagonals).
Ex: x(n) = cos(π
2n) + 2 cos( π
4n), 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)
a1
a2
a3
a4
=−
x(4)
x(5)
x(6)
x(7)
which becomes
using ai=a2p−i
Here: −√2 + √2−1
−1−1−√2a1
a2=1−3
√2−√2→a1
a2=−√2
2.
Poly: [a0, a1, a2, a3, a4] = [1,−√2,2,−√2,1] using a3=a1and a4=a0= 1.
Modes: Roots of polynomial: z=e±jπ/2, e±j π/4→ω1=π/2, ω2=π/4.
Get Ai:x(n) = C1cos(π
2n) + S1sin( π
2n) + C2cos( π
4n) + S2sin(π
4n).
Solve:
1 0 1 0
0 1 √2
2
√2
2
−1 0 0 1
0−1−√2
2
√2
2
C1
S1
C2
S2
=
x(0)
x(1)
x(2)
x(3)
=
3
√2
−1
−√2
;
C1
S1
C2
S2
=
1
0
2
0
.
Note: Nonlinear problem→nonlinear problem (roots) we know how to solve.
pf2

Partial preview of the text

Download Prony's Methods: Computing Line Spectra - Lecture Notes | EECS 451 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

EECS 451 PRONY’S METHOD: COMPUTING LINE SPECTRA

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

  • B

∗ 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

2 p

∏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.

AR:

∑ 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

C 1

S 1

C 2

S 2

x(0)

x(1)

x(2)

x(3)

C 1

S 1

C 2

S 2

Note: Nonlinear problem→nonlinear problem (roots) we know how to solve.

EECS 451 PARAMETRIC SPECTRAL ESTIMATION

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, −

2 , 1]

T .

−2 cos(ωo) = −

2 → ω = ±π/ 4 → poles at e

±jπ/ 4 .

Soln: Frequency ωo = π/4; σ

2 = 3 −