cash¶
-
gammapy.stats.
cash
(n_on, mu_on)[source]¶ Cash statistic, for Poisson data.
The Cash statistic is defined as:
C=2(μon−nonlogμon)and C=0 where μ<=0. For more information see Fit statistics
Parameters: n_on : array_like
Observed counts
mu_on : array_like
Expected counts
Returns: stat : ndarray
Statistic per bin
References