autocorrelation(a,lag)

Returns the autocorrelation of the real data stored in array a using the specified lag.


See also covariance correlation 


Example


a = arrayi( 1, 1, 10 )

1  2  3  4  5  6  7  8  9  10

autocorrelation( a, 2 )

0.4636