raman.denoise

raman.denoise(y)

Fully automatic optimized smoothing algorithm. Code is based on Schulze et al. Appl. Spectrosc. 62, 1160 (2008). The algorithm uses a repeated application of a 3-pixel zero-order Savitzky-Golay filter until a stopping criterion is fulfilled. This stopping criterion is equivalent to a notable distortion of the signal due to smoothing.

Parameters:y (array) – Input spectrum. If y is a list or a 2d array of spectra, denoise every spectrum in that list.
Returns:Filtered spectrum with same shape as y.