autocorrelation

pyspeckle.pyspeckle.autocorrelation(x)[source]

Find the autocorrelation of a 1D array.

This is a little different from the standard autocorrelation because (1) the mean is subtracted before correlation (2) the autocorrelation is normalized to maximum value (3) only the right hand side of the symmetric function is returned

Parameters

x – 1D array

Returns

autocorrelation array of same length