fooof-tools / fooof

Parameterizing neural power spectra into periodic & aperiodic components.
https://fooof-tools.github.io/
Apache License 2.0
358 stars 97 forks source link

[ENH] - Add `interpolate_spectra` function #288

Closed TomDonoghue closed 1 year ago

TomDonoghue commented 1 year ago

This is a minor update that adds a convenience function, interpolate_spectra, that can be directly applied to interpolate away frequency regions across a group of power spectra.

To do so, it wraps interpolate_spectrum so it can be applied across an array of PSDs. This PR also includes a minor update to docs_get_section to assist in copying over information.

Adding this was mentioned here: https://github.com/fooof-tools/fooof/pull/203#discussion_r611920788