combine_by_factor

gdt.core.binning.binned.combine_by_factor(counts, count_uncert, exposure, old_edges, bin_factor)[source]

Rebins binned data to a multiple factor.

Parameters:
  • counts (np.array) – The counts in each bin

  • count_uncert (np.array) – The uncertainty in each bin

  • exposure (np.array) – The exposure of each bin

  • old_edges (np.array) – The time edges of each bin

  • bin_factor (int) – The number of consecutive bins to be combined

Returns:

(np.array, np.array, np.array, np.array)

The counts, uncertainty, and

exposure in each bin and the new bin edges