### Output spectrum

The output intensity and weight at channel are set to:
where the (resp. ) index refers to the resampled version of input spectrum (resp. ) computed from eqs. and /. The normalization in eq. ensures that the integrated intensity is also preserved over the whole spectrum when averaging these two spectra. These equations are the same as eqs. / (for aligned spectra) except that they operate on their resampled versions.