herschel.ia.toolbox.spectrum.operations.segments.resampling
public class EulerNNResampler extends BoxResampler
Resampler using a Euler integration scheme with nearest neighbour interpolation.
The resampling scheme uses an Euler integration scheme in combination with nearest neighbor interpolation. For a given channel in the output grid, the fluxes of the input spectra are summed with weights given by the percentage overlap of the channel of the input spectra with the given output pixel.
To be somewhat more specific: Given input spectra
(w_1,f_1),...,(w_n,f_n) and output spectra (v_1,g_1),...,(v_n,g_n)
the scheme is defined by
g_k = sum_j w_k,j * f_j
where the weights are given by the lengths of the crosssection of the
input and output channels, w_k,j = |crosssection(Intv_out(k),Intv_in(j)|.
The intervals Intv(k) denote the pixel range with boundaries given by the midpoints
of the (input/output) frequency grid.
| Constructor and Description |
|---|
EulerNNResampler() |
getFluxIntegrator, resample