cstat¶
- gdt.core.spectra.fitting.cstat(obs_counts, mod_rates, exposure, back_counts, back_exp)[source]¶
C-Statistic Likelihood for Poisson source + Poisson background. The “W” statistic from the XSPEC Statistics Appendix.
- Parameters:
obs_counts (np.array) – The total observed counts
mod_rates (np.array) – The model source rates
exposure (float) – The source exposure
back_counts (np.array) – The background model counts
back_exp (float) – The background exposure
- Returns:
(float)