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

📄 fcov.m

📁 solution for the Statistical modelling for digital signal processing by hayes
💻 M
字号:
function [gamma,err] = fcov(x,p)%FCOV	Forward covariance algorithm.%----%USAGE	[gamma,err] = fcov(x,p) %%	An all-pole model of order p for the input sequence x is%	found using the forward covariance method.  The outputs%	are the reflection coefficients%		gamma = [g(1), g(2), ... , g(p)]%	corresponding to the all-pole model, and the model error%	which is returned in err.%%  see also COVM, MCOV and BURG%%---------------------------------------------------------------% copyright 1996, by M.H. Hayes.  For use with the book % "Statistical Digital Signal Processing and Modeling"% (John Wiley & Sons, 1996).%---------------------------------------------------------------x = x(:);N=length(x);eplus  = x(2:N);eminus = x(1:N-1);N=N-1;for j=1:p;      gamma(j) = -eminus'*eplus/(eminus'*eminus);      temp1    =  eplus  + gamma(j)*eminus;      temp2    =  eminus + conj(gamma(j))*eplus;      err(j)   =  temp1'*temp1;      eplus    =  temp1(2:N);      eminus   =  temp2(1:N-1);      N=N-1;      end;

⌨️ 快捷键说明

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