raman.savitzky_golay

raman.savitzky_golay(y, window_size, order, deriv=0)

Implementation of the Savitzky Golay filter. Code adapted from http://www.scipy.org/Cookbook/SavitzkyGolay.

Parameters:
  • y (array) – Data array to be smoothed.
  • window_size (int) – Length of the smoothing window. Must be an odd integer.
  • order (int) – Order of the smoothing polynomial. Must be less than window_size - 1.
  • deriv (int) – Order of the derivative to compute (default = 0).
Returns:

Smoothed signal or its derivative. Same shape as y.