[SciPy-Dev] Faster implementation of the Savitsky-Golay filter.

Davide Lasagna lasagnadavide at gmail.com
Sun May 2 07:36:19 EDT 2010


Hi all,

I have come up with a much faster implementation of the Savitsky-Golay
filter function proposed in the Cookbook at
http://www.scipy.org/Cookbook/SavitzkyGolay.

I have tweaked the code in the cookbook and removed the two loops at the end
of the function with a call to np.convolve. The speed up is in excess of a
hundred.

I have attached the code. Can someone update the relevant scipy wiki page?

Moreover, is there a chance that such function will be part of scipy?

Regards,

Davide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20100502/cb337cf5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: savitsky_golay.py
Type: text/x-python
Size: 1619 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20100502/cb337cf5/attachment.py>


More information about the SciPy-Dev mailing list