combine_into_one

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

Combines binned data into a single bin.

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

Returns:

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

The counts, uncertainty, and

exposure in each bin and the new bin edges