Autocorrelations.acf
— Functionacf(x [, lags]; demean=false, normalize=false)
Evaluate the autocorrelation function of signal x
.
By default, the acf is evaluated at all available lags 0:size(x,1)-1
, but arbitrary lags
can be optionally specified.
Keywords
demean
: whether to subtract the mean ofx
before evaluating the acfnormalize
: whether to normalize the acf to its lag-0 value
When length(x) < 1024
, a raw computation (dotacf
) is used, whereas a FFT-based algorithm is used for larger arrays (fftacf
).
Autocorrelations.acf!
— Methodacf!(r, x, lags; demean=false, normalize=false)
Evaluate the autocorrelation of x
at time lags
in-place and store output in r
. See acf
. For this in-place version, lags
must be specified, and length(r)==length(lags)
.
Autocorrelations.dotacf
— Functiondotacf(x [, lags]; demean=false, normalize=false)
Evaluate the autocorrelation of signal x
with a dot-product-based algorithm (see acf
).
Autocorrelations.fftacf
— Functionfftacf(x [, lags]; demean=false, normalize=false)
Evaluate the autocorrelation of signal x
with a FFT-based algorithm (see acf
).