Calculate moments for Power Spectral Density
3 ビュー (過去 30 日間)
古いコメントを表示
I calculated Power Spectral Density(PSD) with multitaper method (pmtm.m).
[y, fs]=wavread(filename);
[Pxx,f] = pmtm(y,4,[],fs);
Does anyone know how to calculate the central moments of PSD? I used matlab moment function, but the results are not correct. The first moment m1 is the mean found through the below
sumAmp = 0;
sumFreq = 0;
for j = 1:Nf
sumAmp = sumAmp + Pxx(j);
sumFreq = sumFreq + f(j)*Pxx(j);
end
m1 = sumFreq/sumAmp;
, but I can not figure out the rest, through searching on the internet.
Thanks a lot.
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Parametric Spectral Estimation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!