StatInfoResults
- class sherpa.fit.StatInfoResults(statname, statval, numpoints, model, dof, qval=None, rstat=None)[source] [edit on github]
Bases:
NoNewAttributesAfterInit
A summary of the current statistic value for one or more data sets.
- ids
The data set ids (it may be a tuple or array) included in the results.
- bkg_ids
The background data set ids (it may be a tuple or array) included in the results, if any.
- statval
The statistic value.
- Type:
number
- dof
The number of degrees of freedom in the fit (the number of bins minus the number of free parameters).
- Type:
- qval
The Q-value (probability) that one would observe the reduced statistic value, or a larger value, if the assumed model is true and the current model parameters are the true parameter values. This will be
None
if the value can not be calculated with the current statistic (e.g. the Cash statistic).- Type:
number or None
- rstat
The reduced statistic value (the
statval
field divided bydof
). This is not calculated for all statistics.- Type:
number or None
Methods Summary
format
()Return a string representation of the statistic.
Methods Documentation
- format()[source] [edit on github]
Return a string representation of the statistic.
- Returns:
txt – A multi-line representation of the statistic value or values.
- Return type: