The detrending function is used to remove offset and tilting from spectra. The general graph slope will be detrended.
The detrending function offers polynomal fitting functions up to the fourth order: