- #1
ChrisVer
Gold Member
- 3,378
- 464
Hi,
I am having one histogram that contains 101 bins.
I tried rebining it with the TH1::Rebin:
But I got the warning message that 2 is not an exact divider of 101.
I looked in ROOT TH1 Rebin's page, and read this note:
I don't understand what the execution of the program actually does to the bins. Is the initial histogram destroyed? I don't think I understand what they mean with the red-highlighted by me phrase...
Does it mean that it grouped the 100 bins together with 2, and it put the last bin events (101st) in the result's last bin (now 50th)? So more like grouping all the 2 bins in 1 and the last 3 in 1?
I am having one histogram that contains 101 bins.
I tried rebining it with the TH1::Rebin:
C:
histogram->Rebin(2.);
I looked in ROOT TH1 Rebin's page, and read this note:
If ngroup is not an exact divider of the number of bins,
the top limit of the rebinned histogram is reduced
to the upper edge of the last bin that can make a complete
group. The remaining bins are added to the overflow bin.
Statistics will be recomputed from the new bin contents.
I don't understand what the execution of the program actually does to the bins. Is the initial histogram destroyed? I don't think I understand what they mean with the red-highlighted by me phrase...
Does it mean that it grouped the 100 bins together with 2, and it put the last bin events (101st) in the result's last bin (now 50th)? So more like grouping all the 2 bins in 1 and the last 3 in 1?