ffrprep.analysis.autocorrelation¶
- ffrprep.analysis.autocorrelation(evoked)[source]¶
Autocorrelation function and 95% CI for the first channel of evoked.
- Parameters:
evoked (mne.Evoked) – Evoked response. Only the first channel’s time series is used.
- Returns:
acf (ndarray of shape (n_times,)) – Autocorrelation values from lag 0 up to
n_times - 1.confidence_interval (ndarray of shape (n_times, 2)) – Lower and upper bounds of the 95% confidence interval at each lag, as returned by
statsmodels.tsa.stattools.acf()withalpha=0.05.