specparam.objs.average_reconstructions

specparam.objs.average_reconstructions(group, avg_method='mean')[source]

Average across model reconstructions for a group of power spectra.

Parameters:
groupSpectralGroupModel

Object with model fit results to average across.

avg{‘mean’, ‘median’}

Averaging function to use.

Returns:
freqs1d array

Frequency values for the average model reconstruction.

avg_model1d array

Power values for the average model reconstruction. Note that power values are in log10 space.