timescales.sim.sim_ar_spectrum

timescales.sim.sim_ar_spectrum#

timescales.sim.sim_ar_spectrum(freqs, fs, phi, offset=1.0)[source]#

Simulate theoretical spectral form of an AR(p) model.

Parameters:
freqs1d array

Frequencies.

fsfloat

Sampling rate, Hz.

phi1d array or float

Autoregressive coefficients. Ordered from most recent in time to farthest in time. Typically, phi_0 will be the largest coeff and corresponds to AR(1).

offsetfloat, optional, default: 1.0

Translates the spectrum along the power, y-axis.