cstat#
- gammapy.stats.cstat(n_on, mu_on, truncation_value=1e-25)[source]#
C statistic, for Poisson data.
The C statistic is defined as:
and
where .truncation_value
handles the case wheren_on
ormu_on
is 0 or less and the log cannot be taken. For more information see Fit statistics.- Parameters:
- Returns:
- statndarray
Statistic per bin.
References