add_overflow_bins

pyirf.binning.add_overflow_bins(bins, positive=True)[source]

Add under and overflow bins to a bin array.

Parameters:
bins: np.array or u.Quantity

Bin edges array

positive: bool

If True, the underflow array will start at 0, if not at -np.inf