summaryrefslogtreecommitdiff
path: root/macros/schurrc.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/schurrc.sci')
-rw-r--r--macros/schurrc.sci6
1 files changed, 2 insertions, 4 deletions
diff --git a/macros/schurrc.sci b/macros/schurrc.sci
index 98448d6..f3d3685 100644
--- a/macros/schurrc.sci
+++ b/macros/schurrc.sci
@@ -1,15 +1,14 @@
-//schurrc - Schur algorithm.
+function [k,e] = schurrc(R)
+ //schurrc - Schur algorithm.
//K = SCHURRC(R) computes the reflection coefficients from autocorrelation vector R. If R is a matrix, SCHURRC finds coefficients for each column of R, and returns them in the columns of K.
//[K,E] = SCHURRC(R) returns the prediction error variance E. If R is a matrix, SCHURRC finds the error for each column of R, and returns them in the rows of E.
//Modified to match matlab i/p and o/p and handle exceptions
//Fixed bugs
//by Debdeep Dey
-
//////EXAMPLES:
//m=linspace(1,100);
//r = xcorr(m(1:5),'unbiased');.......autocorrelation vector
//[k,e] = schurrc(r(5:$))
-
//EXPECTED OUTPUT
//e =1.6212406
//k = - 0.9090909 0.2222222 0.2244898 0.2434211
@@ -17,7 +16,6 @@
-function [k,e] = schurrc(R)
narginchk(1,1,argn(2));
if(type(R)==10) then// R is a matrix of character strings
w=R;