如何用matlab得到白噪声的自相关函数和功率谱密度?

2024-12-27 09:26:57
推荐回答(2个)
回答1:

bnet2 = mk_bnet(dag, node_sizes);
seed = 0;
rand('state', seed);
%随机初始化网络参数
bnet2.CPD{C} = tabular_CPD(bnet2, C);
bnet2.CPD{R} = tabular_CPD(bnet2, R);
bnet2.CPD{S} = tabular_CPD(bnet2, S);
bnet2.CPD{W} = tabular_CPD(bnet2, W);

bnet3 = learn_params(bnet2, samples);
CPT3 = cell(1,N);
for i=1:N
s=struct(bnet3.CPD{i}); % violate object privacy

回答2:

用xcorr求序列的自相关函数
除以序列的所有值平方和,得到功率谱密度