get_stat_name

sherpa.astro.ui.get_stat_name()

Return the name of the current fit statistic.

Returns:

name – The name of the current fit statistic method, in lower case.

Return type:

str

See also

get_stat

Return a fit statistic.

set_stat

Set the fit statistic.

Examples

>>> get_stat_name()
'chi2gehrels'
>>> set_stat('cash')
>>> get_stat_name()
'cash'