Programmer Guide/Command Reference/EVAL/corrfun: Difference between revisions
From STX Wiki
Jump to navigationJump to search
initial import |
m 1 revision: Initial import |
(No difference)
| |
Revision as of 17:31, 18 November 2010
corrfun
| corrfun(x, lags, scale) | ||
| lags | the number of coefficients | def.=nrow(x)/2 |
| scale | the scaling | def.=0 |
| 0=no scaling | ||
| 1=scaling with "1 / nrow(x)", | ||
| 2=scaling with "1 / (nrow(x) - lag)" |
The result is a vector with lags elements. |- |corrfun(x, y, lags, scale) |Calculate the coefficients 0..lags-1 of the cross-correlation function of the vectors x and y. The parameters are the same as for the auto-correlation function. |}