specparam.sim.utils.create_freqs¶
- specparam.sim.utils.create_freqs(freq_range, freq_res)¶
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 for the 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 specparam.sim.utils.create_freqs
¶
Fitting Power Spectrum Models Across 3D Arrays
Fitting Power Spectrum Models Across 3D Arrays