function [base corrected_spectrum]=baseline(Spectrum)
This functions estimate the baseline and corrected spectrum of a a given Raman spectrum. Parts of the algorithm are similar to H. Schulze et al , but other parts have major differences.
Spectrum: vector of size (N*1)
Base: Identified Baseline vector of size (N*1)
Corrected_Spectrum: Corrected Spectrum vector of size (N*1)
Example on how to use the function is also provided.
 Schulze, H. Georg, et al. "A small-window moving average-based fully automated baseline estimation method for Raman spectra." Applied spectroscopy 66.7 (2012): 757-764.