Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PSD problem, source PSD different from calculated

Status
Not open for further replies.

parqet

Newbie level 1
Joined
Feb 12, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,291
PSD problem

Here is the problem. I generated a gaussian stationary signal from a know power spectral density, using a monte carlo method

x(t)= sum(sqrt(2*Sx(ωk)*Δω) * [cos(wk*t+randomphase)])

where: Sx is a double-sided spectral density
ωk is the k-th angular velocity and
Δω is ang. velocity resolution

Naturally x(t) is a descrete signal.

Just to test it, I tried to calculate PSD back from the generated signal x(t). I used FFt alghoritm and calculated the power spectral density as

X=fft(x);
Sx=X*conj(X)/N = |X|^2/N,

where N is a number of samples.

Since it is a random signal I calculated several PSD from several smaller portions of the sample, averaging them into one final PSD, and also used the Hanning window to deal with leakage.

The problem is, that the acquired PSD has the same shape as the one used in the beginning to generate the signal, but the values are substantially different (~60 times different). Where did I go wrong?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top