timescales.autoreg.compute_ar_spectrum
timescales.autoreg.compute_ar_spectrum¶
- timescales.autoreg.compute_ar_spectrum(sig, fs, order, f_range=None, method='burg', nfft=4096, n_jobs=1)[source]¶
Compute an autoregressive power spectrum.
- Parameters
- sig1d or 2d array
Voltage time series.
- fsfloat
Sampling rate, in Hz.
- orderint
Number of autogressive coefficients to fit.
- f_rangetuple
Lower and upper frequency bounds.
- methodstr, {‘burg’, ‘yule_walker’}
Coefficient estimation method.
- nfftint, optional, default: 4096
Window length.
- n_jobsoptional, int, default: 1
Number of jobs to run in parallel.
- Returns
- freqs1d array
Frequency definitions.
- powers1d array
Power values.