差分预测总程序

function yucezhi=chafenyuce2(gaotie,n)
yuanzhi=gaotie;
y_h_adf = adftest(gaotie);
y_h_kpss = kpsstest(gaotie);
if y_h_adf==1 &&y_h_kpss==0
   a=0;
else
for i=1:n
    a(i)=gaotie(length(gaotie));
gaotie=chafen(gaotie);
y_h_adf = adftest(gaotie);
y_h_kpss = kpsstest(gaotie);
if y_h_adf==1 &&y_h_kpss==0
    fprintf('n is%8.4f\n',i)
    break;
end
end
end
gaotie=gaotie';
[ddb,bbb,aaa, e,pos,hhh]=armaminerrordainihe2(gaotie); %30 270.4384 
[yucezhi,geta,cancha]=armajuzhenyucearma(pos,gaotie);
yucezhi=yucezhi+sum(a);

end

你可能感兴趣的:(数据分析)