specparam.analysis.compute_pointwise_error_group

specparam.analysis.compute_pointwise_error_group(group, plot_errors=True, return_errors=False, **plt_kwargs)[source]

Calculate the frequency by frequency error of model fits for a group of fits.

Parameters:
groupSpectralGroupModel

Object containing the data and models.

plot_errorsbool, optional, default: True

Whether to plot the errors across frequencies.

return_errorsbool, optional, default: False

Whether to return the calculated errors.

**plt_kwargs

Keyword arguments to be passed to the plot function.

Returns:
errors2d array

Calculated values of the difference between the data and the models. Only returned if return_errors is True.

Raises:
NoDataError

If there is no data available to calculate model errors from.

NoModelError

If there are no model results available to calculate model errors from.

Examples using specparam.analysis.compute_pointwise_error_group

Frequency-by-Frequency Errors

Frequency-by-Frequency Errors

Developmental Data Demo

Developmental Data Demo