Rebinning function¶
This function takes as input:
- a collection of data points (x_i, y_i) of a spectrum (flux density)
- the centers x'_j of the spectrograph's pixels.
Its output are values Y'_j approximating the flux (integrated flux density) in each pixel.
Description of the algorithm¶
See files attached.