neurodsp.aperiodic.irasa.fit_irasa¶
- neurodsp.aperiodic.irasa.fit_irasa(freqs, psd_aperiodic)[source]¶
Fit the IRASA derived aperiodic component of the spectrum.
- Parameters
- freqs1d array
Frequency vector, in linear space.
- psd_aperidic1d array
Power values, in linear space.
- Returns
- interceptfloat
Fit intercept value.
- slopefloat
Fit slope value.
Notes
This fits a linear function of the form y = ax + b to the log-log aperiodic power spectrum.