bin_by_edges¶
- gdt.core.binning.unbinned.bin_by_edges(times, time_edges, *args, **kwargs)[source]¶
Bins unbinned data by pre-defined edges. A rather trivial function :)
- Parameters:
times (np.array) – The time of each event
time_edges (np.array) – The pre-defined time edges
- Returns:
np.array – The edges of the binned data