Changeset 371 for trunk/SRC/ToBeReviewed/STATISTICS/c_timecorrelate.pro
- Timestamp:
- 08/07/08 11:32:02 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/STATISTICS/c_timecorrelate.pro
r327 r371 89 89 ; 90 90 ; Define two n-elements sample populations. 91 ; IDL> x = [3.73, 3.67, 3.77, 3.83, 4.67, 5.87, 6.70, 6.97, 6.40, 5.57]92 ; IDL> y = [2.31, 2.76, 3.02, 3.13, 3.72, 3.88, 3.97, 4.39, 4.34, 3.95]91 ; IDL> x = [3.73, 3.67, 3.77, 3.83, 4.67, 5.87, 6.70, 6.97, 6.40, 5.57] 92 ; IDL> y = [2.31, 2.76, 3.02, 3.13, 3.72, 3.88, 3.97, 4.39, 4.34, 3.95] 93 93 ; 94 94 ; Compute the cross correlation of X and Y for LAG = -5, 0, 1, 5, 6, 7 95 ; IDL> lag = [-5, 0, 1, 5, 6, 7]96 ; IDL> result = c_timecorrelate(x, y, lag)95 ; IDL> lag = [-5, 0, 1, 5, 6, 7] 96 ; IDL> result = c_timecorrelate(x, y, lag) 97 97 ; 98 98 ; The result should be:
Note: See TracChangeset
for help on using the changeset viewer.