combine_into_one

gdt.core.binning.unbinned.combine_into_one(times, tstart, tstop, *args, **kwargs)[source]

Bins unbinned data to a single bin.

Parameters:
  • times (np.array) – The time of each event

  • tstart (float) – The first bin edge time. Will use the first event time if omitted.

  • tstop – (float): The last bin edge time. Will use the last event time if omitted.

Returns:

np.array – The edges of the binned data