fooof.sim.gen_freqs

fooof.sim.gen_freqs(freq_range, freq_res)[source]

Generate a frequency vector.

Parameters
freq_rangelist of [float, float]

Frequency range to create frequencies across, as [f_low, f_high], inclusive.

freq_resfloat

Frequency resolution of desired frequency vector.

Returns
freqs1d array

Frequency values, in linear spacing.

Examples

Generate a vector of frequency values from 1 to 50:

>>> freqs = gen_freqs([1, 50], freq_res=0.5)

Examples using fooof.sim.gen_freqs

Fitting Power Spectrum Models Across 3D Arrays

Fitting Power Spectrum Models Across 3D Arrays