SATAN provides a fit package to fit functions to a displayed analyzer spectrum. Please look here for a description of the fit package.