diff options
Diffstat (limited to 'utils/chi2')
-rwxr-xr-x | utils/chi2 | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -121,9 +121,6 @@ def make_nll(data, mc_hists): return nll - norm.logpdf(x[1],ENERGY_SCALE_MEAN,ENERGY_SCALE_UNCERTAINTY) return nll -def chi2(samples,expected): - return np.sum((samples-expected)**2/expected,axis=-1) - def get_mc_hist(data,x,bins): hist = np.histogram(data,bins=bins)[0] return sample_mc_hist(hist,norm=x[0]/100.0) |