pygram11.utils.densify1d(h, range, binw=None, sumw2=None)[source]

normalize histogram as a PDF such thtat the integral over the range is 1.

This function is used by the histogramming functions if the density argument is true.

  • h (array_like) – histogram bin heights
  • range ((float, float)) – histogram axis limits
  • binw (array_like, optional) – array of bin widths if variable width bins (None assumes fixed width bins).
  • sumw2 (array_like) – array representing sum of weights squared in each bin