StatInfoResults¶
-
class
sherpa.fit.
StatInfoResults
(statname, statval, numpoints, model, dof, qval=None, rstat=None)[source]¶ Bases:
sherpa.utils.NoNewAttributesAfterInit
A summary of the current statistic value for one or more data sets.
-
name
¶ str – The name of the data set, or sets.
-
ids
¶ sequence of int or str – The data set ids (it may be a tuple or array) included in the results.
-
bkg_ids
¶ sequence of int or str, or None – The background data set ids (it may be a tuple or array) included in the results, if any.
-
statname
¶ str – The name of the statistic function.
-
statval
¶ number – The statistic value.
-
numpoints
¶ int – The number of bins used in the fits.
-
dof
¶ int – The number of degrees of freedom in the fit (the number of bins minus the number of free parameters).
-
qval
¶ number or None – 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).
-
rstat
¶ number of None – The reduced statistic value (the statval field divided by dof). This is not calculated for all statistics.
Methods Summary
format
()Return a string representation of the statistic. Methods Documentation
-