create_bins_per_decade

pyirf.binning.create_bins_per_decade(e_min, e_max, bins_per_decade=5)[source]

Create a bin array with bins equally spaced in logarithmic energy with bins_per_decade bins per decade.

Parameters:
e_min: u.Quantity[energy]

Minimum energy, inclusive

e_max: u.Quantity[energy]

Maximum energy, non-inclusive If the endpoint exactly matches the n_bins_per_decade requirement, it will be included.

n_bins_per_decade: int

number of bins per decade

Returns:
bins: u.Quantity[energy]

The created bin array, will have units of e_min