From 9ca7882cee16ad48b18df989e8300c697010e55a Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 25 Jul 2018 16:27:51 +0530 Subject: code changes by Sonu Sharma during FOSSEE Fellowship 2018 --- macros/xcov1.sci | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 macros/xcov1.sci (limited to 'macros/xcov1.sci') diff --git a/macros/xcov1.sci b/macros/xcov1.sci deleted file mode 100644 index b0bff93..0000000 --- a/macros/xcov1.sci +++ /dev/null @@ -1,35 +0,0 @@ -function [R,lag] = xcov1(X, Y, biasflag) -// Compute covariance at various lags [=correlation(x-mean(x),y-mean(y))]. -//Calling Sequence -//[R, lag] = xcov (X) -//... = xcov (X, Y) -//... = xcov (..., maxlag) -//... = xcov (..., scale) -//Parameters -//X: Input vector -//Y: if specified, compute cross-covariance between X and Y, otherwise compute autocovariance of X. -//maxlag: is specified, use lag range [-maxlag:maxlag], otherwise use range [-n+1:n-1]. -//scale: -// 'biased': for covariance=raw/N, -// 'unbiased': for covariance=raw/(N-|lag|), -// 'coeff': for covariance=raw/(covariance at lag 0), -// 'none': for covariance=raw -// 'none': is the default. -//Description -//Compute covariance at various lags [=correlation(x-mean(x),y-mean(y))]. Returns the covariance for each lag in the range, plus an optional vector of lags. - -funcprot(0); -rhs = argn(2) -if(rhs<1 | rhs>3) -error("Wrong number of input arguments."); -end - - select(rhs) - case 1 then - [R,lag] = callOctave("xcov",X); - case 2 then - [R,lag] = callOctave("xcov",X,Y); - case 3 then - [R,lag] = callOctave("xcov",X,Y,biasflag); - end -endfunction -- cgit