⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 durbin.m

📁 MATLAB programs for Durbin s MA
💻 M
字号:
function b = durbin(x,p,q)
%DURBIN	Find a moving average model using Durbin's method
%----
%Syntax is:	b = durbin(x,p,q) 
%
%	A moving average model for the input sequence x is found
%	using Durbin's method.  The coefficients are returned in
%	the vector
%		b = [b(0), b(1), ... , b(q) ]
%	
%	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
x   = x(:);
if p>=length(x), error('Model order too large'), end
[a,epsilon] = acm(x,p);
[b,epsilon] = acm(length(x)*a/sqrt(epsilon),q);
b = b*length(x)/sqrt(epsilon);

⌨️ 快捷键说明

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