ibllib.dsp.savitzky_golay

Created on Wed Jan 14 11:30:29 2015

@author: nico

Functions

savitzky_golay

Smoothes input signal with a Savitzky-Golay function.

savitzky_golay(y, window_size, order, deriv=0, rate=1)[source]

Smoothes input signal with a Savitzky-Golay function.

Uses a kernel of size “window_size” and a polinomial fit of order “order”.

Parameters
  • y ([type]) – [description]

  • window_size ([type]) – [description]

  • order ([type]) – [description]

  • deriv – [description], defaults to 0

  • deriv – int, optional

  • rate – [description], defaults to 1

  • rate – int, optional

Raises
  • ValueError – [description]

  • TypeError – [description]

  • TypeError – [description]

Returns

[description]

Return type

[type]