get_bkg_stat_info

sherpa.astro.ui.get_bkg_stat_info()

Return the statistic values for the current background models.

Return the statistic values for the background datasets. See get_stat_info.

Added in version 4.16.0.

Returns:

stats – The values for each data set. If there are multiple model expressions then the last element will be the value for the combined data sets.

Return type:

array of sherpa.fit.StatInfoResults

Notes

If a fit to a particular data set has not been made, or values - such as parameter settings, the noticed data range, or choice of statistic - have been changed since the last fit, then the results for that data set may not be meaningful and will therefore bias the results for the simultaneous results.

Examples

>>> res = get_stat_info()
>>> res[0].statval
498.21750663761935
>>> res[0].dof
439