aminnj / yahist

1D and 2D histogram objects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rebin methods

aminnj opened this issue · comments

h1.rebin(3) rebins by summing. But when calculating ratios, eg., (hnum/hden).rebin(3), it's not what you'd want. Either make it clear that rebin() sums (and make the user do hnum.rebin(3)/hden.rebin(3)) or support a .rebin(3, how="sum"/"mean").