get_stat¶
-
sherpa.astro.ui.get_stat(name=None)¶ Return a fit statisic.
Parameters: name (str, optional) – If not given, the current fit statistic is returned, otherwise it should be one of the names returned by the list_stats function. Returns: stat – An object representing the fit statistic. Return type: object Raises: sherpa.utils.err.ArgumentErr– If thenameargument is not recognized.See also
get_stat_name()- Return the name of the current fit statistic.
list_stats()- List the fit statistics.
set_stat()- Change the fit statistic.
Examples
>>> stat = ui.stat() >>> stat Chi Squared with Gehrels variance >>> stat.name 'chi2gehrels'