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-element sample populations.
x = [3.73, 3.67, 3.77, 3.83, 4.67, 5.87, 6.70, 6.97, 6.40, 5.57]
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
lag = [-5, 0, 1, 5, 6, 7]
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 163 2006-08-29 12:59:46Z navarro $
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 |