show_stat
- sherpa.astro.ui.show_stat(outfile=None, clobber=False) None
Display the current fit statistic.
- Parameters:
outfile (str, optional) – If not given the results are displayed to the screen, otherwise it is taken to be the name of the file to write the results to.
clobber (bool, optional) – If
outfileis notNone, then this flag controls whether an existing file can be overwritten (True) or if it raises an exception (False, the default setting).
- Raises:
sherpa.utils.err.IOErr – If
outfilealready exists andclobberisFalse.
See also
calc_statCalculate the fit statistic for a data set.
calc_stat_infoDisplay the statistic values for the current models.
get_statReturn a fit-statistic method.
show_allReport the current state of the Sherpa session.
Examples
>>> set_stat('cash') >>> show_stat() Statistic: Cash Maximum likelihood function