rebin_1D¶
-
ompy.
rebin_1D
(double[:] counts, double[:] mids_in, double[:] mids_out)¶ Rebin an array of counts from binning mids_in to binning mids_out
- Parameters
counts – Array of counts to be rebinned
mids_in – Array of mid-bins energies giving the calibration of counts_in
mids_out – Array of mid-bins energies of the counts array after rebin
- Returns
- Array of rebinned counts with calibration
given by mids_out
- Return type
counts_out