topc_timecorrelate
Statistics
Parameters
x
in
required
type: array
y
in
required
type: array
lag
in
required
type: scalar or vector
Keywords
COVARIANCE
DOUBLE
Examples
Define two n-elements sample populations.
IDL> x = [3.73, 3.67, 3.77, 3.83, 4.67, 5.87, 6.70, 6.97, 6.40, 5.57]
IDL> y = [2.31, 2.76, 3.02, 3.13, 3.72, 3.88, 3.97, 4.39, 4.34, 3.95]
Compute the cross correlation of X and Y for LAG = -5, 0, 1, 5, 6, 7
IDL> lag = [-5, 0, 1, 5, 6, 7]
IDL> result = c_timecorrelate(x, y, lag)
The result should be:
[-0.428246, 0.914755, 0.674547, -0.405140, -0.403100, -0.339685]
Version history
Version
$Id: c_timecorrelate.pro 327 2007-12-13 16:22:35Z pinsard $
History
- 01/03/2000 Sebastien Masson (smasson@lodyc.jussieu.fr)
Based on the C_CORRELATE procedure of IDL
- August 2003 Sebastien Masson
update according to the update made in C_CORRELATE by
W. Biagiotti and available in IDL 5.5
INTRODUCTION TO STATISTICAL TIME SERIES
Wayne A. Fuller
ISBN 0-471-28715-6
Statistics
McCabe cyclic | 33 |
McCabe essential | 1 |
McCabe modular design | 1 |