This code decomposes a Power Spectrum signal into its periodic and aperiodic components.
This code has an associated article (Gonzalez-Burgos et al. 2023). It generates Figure 1 D-H
It also generates figure 5C
The script 'gonzalez_burgos_PSD_processing.m' loads the 'example_PSD.csv' and calls function 'fit_psd.m' to extract the periodic and aperiodic components.
The script 'gonzalez_burgos_gaussian_fit.m' loads the 'example_gaussian.csv' and fits a kernel-density estimator (KDE) to the frequency distribution of gaussians to determine the limits of the frequency bands.
To use this software, please cite: