ewoksxas.converters.resample.interpolate_spectrum#
- ewoksxas.converters.resample.interpolate_spectrum(target_x, x, y)[source]#
Linearly interpolate the spectrum
(x, y)ontotarget_x.xneed not be sorted:np.interprequires increasing sample points, soxandyare sorted together first.- Parameters:
target_x (
ndarray[tuple[int,...],dtype[float64]])x (
ndarray[tuple[int,...],dtype[float64]])y (
ndarray[tuple[int,...],dtype[float64]])
- Return type:
ndarray[tuple[int,...],dtype[float64]]