durbin_ma.m

来自「MATLAB programs for Durbin s MA」· M 代码 · 共 15 行

M
15
字号
function ma=durbin_ma(x,p,q)
% Syntax is: ma=durbin_ma(x,p,q)
%   This program finds moving average with Durbin's method
%   INPUTS:
%   x : Given time series
%   q :  order of the moving average model
%	p :  order of the all-pole model used to approximation 1/B(z).
%	     This parameter should be at least 4*q as mentioned in the "Moving
%	     average parameter estimation paper" by Niclas Sandgren
b=durbin(x,p,q);
for i=1:1:q
    X(:,i)=x(q-i+1:end-i+1,1);
end
    ma=((X*b(2:end,1))/sum(b(2:end,1)));
    

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?