Basic tasks of signal processing in spectroscopy