computeAcf function

Compute and shorten autocorrelation