Ignore:
Timestamp:
03/16/07 10:22:26 (17 years ago)
Author:
pinsard
Message:

corrections of some misspellings in some *.pro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/STATISTICS/c_timecorrelate.pro

    r163 r226  
    11;+ 
    22; @file_comments 
    3 ;  
     3; 
    44; 
    55; @categories 
     
    6565; This function computes the "time cross correlation" Pxy(L) or 
    6666; the "time cross covariance" between 2 arrays (this is some 
    67 ; kind of c_correlate but for multidimenstionals arrays) as a 
     67; kind of c_correlate but for multidimensional arrays) as a 
    6868; function of the lag (L). 
    6969; 
     
    8585; 
    8686; @keyword COVARIANCE 
    87 ; If set to a non-zero value, the sample cross  
     87; If set to a non-zero value, the sample cross 
    8888; covariance is computed. 
    8989; 
     
    9393; 
    9494; @examples 
    95 ;  
     95; 
    9696;       Define two n-element sample populations. 
    9797;         x = [3.73, 3.67, 3.77, 3.83, 4.67, 5.87, 6.70, 6.97, 6.40, 5.57] 
     
    108108;       - 01/03/2000 Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    109109;       Based on the C_CORRELATE procedure of IDL 
    110 ;       - August 2003 Sebastien Masson  
     110;       - August 2003 Sebastien Masson 
    111111;       update according to the update made in C_CORRELATE by 
    112112;       W. Biagiotti and available in IDL 5.5 
     
    122122FUNCTION c_timecorrelate, X, Y, Lag, Covariance = Covariance, Double = Double 
    123123 
    124 ;Compute the sample cross correlation or cross covariance of  
     124;Compute the sample cross correlation or cross covariance of 
    125125;(Xt, Xt+l) and (Yt, Yt+l) as a function of the lag (l). 
    126126 
     
    138138   if nt lt 2 then $ 
    139139    MESSAGE, "Time dimension of X and Y arrays must contain 2 or more elements." 
    140     
     140 
    141141;If the DOUBLE keyword is not set then the internal precision and 
    142142;result are identical to the type of input. 
     
    168168   if KEYWORD_SET(Covariance) eq 0 then begin ;Compute Cross  Crossation. 
    169169      for k = 0, nLag-1 do begin 
    170          if Lag[k] ge 0 then BEGIN  
     170         if Lag[k] ge 0 then BEGIN 
    171171            case NDim of 
    172172               1: Cross[k] = TimeCross_Cov(Xd, Yd, Lag[k], nT, Ndim, Double = Double) 
    173173               2: Cross[*, k] = TimeCross_Cov(Xd, Yd, Lag[k], nT, Ndim, Double = Double) 
    174174               3: Cross[*, *, k] = TimeCross_Cov(Xd, Yd, Lag[k], nT, Ndim, Double = Double) 
    175                4: Cross[*, *, *, k] = TimeCross_Cov(Xd, Yd, Lag[k], nT, Ndim, Double = Double)  
     175               4: Cross[*, *, *, k] = TimeCross_Cov(Xd, Yd, Lag[k], nT, Ndim, Double = Double) 
    176176             endcase 
    177          ENDIF else BEGIN  
     177         ENDIF else BEGIN 
    178178            case NDim of 
    179179               1: Cross[k] = TimeCross_Cov(Yd, Xd, ABS(Lag[k]), nT, Ndim, Double = Double) 
     
    182182               4: Cross[*, *, *, k] = TimeCross_Cov(Yd, Xd, ABS(Lag[k]), nT, Ndim, Double = Double) 
    183183             endcase 
    184          ENDELSE  
     184         ENDELSE 
    185185       ENDFOR 
    186186       div = sqrt(TimeCross_Cov(Xd, Xd, 0L, nT, Ndim, Double = Double, /zero2nan) * $ 
     
    196196               4: Cross[*, *, *, k] = TimeCross_Cov(Xd, Yd, Lag[k], nT, Ndim, Double = Double) / nT 
    197197            ENDCASE 
    198          ENDIF else BEGIN  
     198         ENDIF else BEGIN 
    199199            case NDim of 
    200200               1: Cross[k] = TimeCross_Cov(yd, xd, ABS(Lag[k]), nT, Ndim, Double = Double) / nT 
     
    203203               4: Cross[*, *, *, k] = TimeCross_Cov(yd, xd, ABS(Lag[k]), nT, Ndim, Double = Double) / nT 
    204204            ENDCASE 
    205          ENDELSE  
     205         ENDELSE 
    206206      endfor 
    207207   endelse 
     
    210210 
    211211END 
    212    
     212 
Note: See TracChangeset for help on using the changeset viewer.