I have to make a function which summerizes all preprocessing steps (calling the functions for DC correction, filtering and frequency decomposition) and calculate the spectra of