specparam.data.FitResults

class specparam.data.FitResults(aperiodic_params, peak_params, r_squared, error, gaussian_params)[source]

Model results from parameterizing a power spectrum.

Parameters:
aperiodic_params1d array

Parameters that define the aperiodic fit. As [Offset, (Knee), Exponent]. The knee parameter is only included if aperiodic is fit with knee.

peak_params2d array

Fitted parameter values for the peaks. Each row is a peak, as [CF, PW, BW].

r_squaredfloat

R-squared of the fit between the full model fit and the input data.

errorfloat

Error of the full model fit.

gaussian_params2d array

Parameters that define the gaussian fit(s). Each row is a gaussian, as [mean, height, standard deviation].

Notes

This object is a data object, based on a NamedTuple, with immutable data attributes.

Examples using specparam.data.FitResults

Developmental Data Demo

Developmental Data Demo

02: Fitting Power Spectrum Models

02: Fitting Power Spectrum Models

06: Fitting group of spectra

06: Fitting group of spectra

07: Tuning & Troubleshooting

07: Tuning & Troubleshooting