diff options
Diffstat (limited to 'macros/armcov.sci')
-rw-r--r-- | macros/armcov.sci | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/macros/armcov.sci b/macros/armcov.sci index e36b4c7..fe55342 100644 --- a/macros/armcov.sci +++ b/macros/armcov.sci @@ -1,3 +1,5 @@ + +function [ar_coeff, var_est] = armcov(data_in, order) //Autoregressive all-pole model parameters — modified covariance method //Calling Sequence- //a = armcov(x,p) @@ -9,7 +11,6 @@ //e:variance estimate //Description //This function uses the modified covariance method to fit a pth-order autoregressive (AR) model to the input signal x. - //Example : //A = [1 -2.7607 3.8106 -2.6535 0.9238]; //y = filter(1,A,0.2*rand(1024,1,"normal")); @@ -17,8 +18,6 @@ //OUTPUT : // since "rand" function is used, output doesn't always remains same. It differs by some amount. // 1. - 2.7450144 3.7762385 - 2.6201362 0.9104109 0.9104109 - function [ar_coeff, var_est] = armcov(data_in, order) - checkNArgin(2,2, argn(2)); // function call method = 'modified'; [ar_coeff, var_est, msg] = arParEst(data_in, order, method); |