neurodsp.aperiodic.autocorr.compute_ac_fit

neurodsp.aperiodic.autocorr.compute_ac_fit(timepoints, *popts, fit_function='single_exp')[source]

Regenerate values of the exponential decay fit.

Parameters:
timepoints1d array

Time values, in samples or seconds.

*popts

Fit parameters.

fit_func{‘single_exp’, ‘double_exp’}

Which fit function to use to fit the autocorrelation results.

Returns:
fit_values1d array

Values of the fit to the autocorrelation values.