-
大小: 437B文件類型: .m金幣: 2下載: 1 次發(fā)布日期: 2021-01-05
- 語言: Matlab
- 標(biāo)簽:
資源簡介
AR模型階數(shù)定階方法,采用matlab編程實(shí)現(xiàn)AR模型的一種定階準(zhǔn)則
代碼片段和文件信息
function?[Porder?d1]=ARorder(testsigp1?p2?)
%求解AR模型的階數(shù)及模型系數(shù)
%輸入tests為時間序列為行向量,p1為階數(shù)起點(diǎn),p2為階數(shù)終點(diǎn)?
%輸出Porder是模型階數(shù),d1為模型參數(shù)
%%%確定AR模型階數(shù)
k=1;
for?p=p1:p2
m=armax(testsig[p?0]);
FPEvalue(k)=m.EstimationInfo.FPE;
pvalue(k)=p;
k=k+1;
end
j=find(FPEvalue==min(FPEvalue));%最小的FPEvalue為要找的階數(shù)
Porder=pvalue(j);
m=armax(testsig[Porder0]);
d1=m.a;%提取模型參數(shù)系數(shù)
????
????????tle>鏈皢瀵硅薄寮曠敤璁劇疆鍒板璞$殑瀹炰緥銆?/title>
????????ta?name=“viewport“?content=“width=device-width“?/>
????????yle>
?????????body?{font-family:“Verdana“;font-weight:normal;font-size:?.7em;color:black;}?
?????????p?{font-family:“Verdana“;font-weight:normal;color:black;margin-top:?-5px}
?????????b?{font-family:“Verdana“;font-weight:bold;color:black;margin-top:?-5px}
?????????H1?{?fo
評論
共有 條評論