neurodsp.aperiodic.autocorr.compute_decay_time¶
- neurodsp.aperiodic.autocorr.compute_decay_time(timepoints, autocorrs, fs, level=0)[source]¶
Compute autocorrelation decay time, from precomputed autocorrelation.
- Parameters:
- timepoints1d array
Timepoints for the computed autocorrelations.
- autocorrs1d array
Autocorrelation values.
- fsint
Sampling rate of the signal.
- levelfloat
Autocorrelation decay threshold.
- Returns:
- resultfloat
Autocorrelation decay time. If decay time value not found, returns nan.
Notes
The autocorrelation decay time is computed as the time delay for the autocorrelation to drop to (or below) the decay time threshold.