timescales.sim.sim_lorentzian

Contents

timescales.sim.sim_lorentzian#

timescales.sim.sim_lorentzian(freqs, knee_freq, exponent=2.0, offset=0.0, constant=0.0)[source]#

Simulate a Lorentzian with a timescale.

Parameters:
freqs1d array

Frequency definition.

knee_freqfloat

Frequency corresponding to the desired timescale.

exponentfloat, optional, deafult: 2.

Slope of the post-knee log-log spectra.

offsetfloat, optional, default: 0.

Y-intercept.

constantfloat, optional, default: 0.

Constant scaling factor that tapers high-frequency log-log power.

Returns:
powers1d array

Power spectral density.