C_CORRELATE
Syntax | Return Value | Arguments | Keywords | Examples | Version History | See Also
The C_CORRELATE function computes the cross correlation Pxy(L) or cross covariance Rxy(L) of two sample populations X and Y as a function of the lag L


where x and y are the means of the sample populations x = (x0, x1, x2, ... , xN-1) and y = (y0, y1, y2, ... , yN-1), respectively.
This routine is written in the IDL language. Its source code can be found in the file c_correlate.pro in the lib subdirectory of the IDL distribution.
Syntax
Result = C_CORRELATE( X, Y, Lag [, /COVARIANCE] [, /DOUBLE] )
Return Value
Returns the cross correlation Pxy(L) or cross covariance Rxy(L) of two sample populations X and Y as a function of the lag L.
Arguments
X
An n-element integer, single-, or double-precision floating-point vector.
Y
An n-element integer, single-, or double-precision floating-point vector.
Lag
A scalar or n-element integer vector in the interval [-(n-2), (n-2)], specifying the signed distances between indexed elements of X.
Keywords
COVARIANCE
Set this keyword to compute the sample cross covariance rather than the sample cross correlation.
DOUBLE
Set this keyword to force the computation to be done in double-precision arithmetic.
Examples
IDL prints:
Version History
See Also
A_CORRELATE, CORRELATE, M_CORRELATE, P_CORRELATE, R_CORRELATE, Correlation Analysis (Using IDL)