calc_chisqr¶
-
sherpa.astro.ui.
calc_chisqr
(id=None, *otherids)¶ Calculate the per-bin chi-squared statistic.
Evaluate the model for one or more data sets, compare it to the data using the current statistic, and return the value for each bin. No fitting is done, as the current model parameter, and any filters, are used.
Parameters: - id (int or str, optional) – The data set to use. If not given then the default identifier is used, as returned by get_default_id.
- *otherids (int or str, optional) – Include multiple data sets in the calculation.
Returns: chisq – The chi-square value for each bin of the data, using the current statistic (as set by set_stat). A value of
None
is returned if the statistic is not a chi-square distribution.Return type: array or
None
See also
calc_stat()
- Calculate the fit statistic for a data set.
calc_stat_info()
- Display the statistic values for the current models.
set_stat()
- Set the statistical method.