comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Savitzky-Golay filter
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Savitzky-Golay filter [message #68639 is a reply to message #68618] Wed, 11 November 2009 10:18 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Nov 11, 5:12 am, Dav_Poreh <d.po...@gmail.com> wrote:
> Folks
> Hi;
>  I am running Savitzky-Golay filter to take the derivations (first and
> second order). In comparison to derive function there is remarkable
> difference between Savitzky-Golay and routine derivation. I don’t know
> which one is correct. Does this back to Taylor approximation or
> something else?
> Any help kindly appreciated
> Cheers

First of all, there is no single "correct" answer. You don't have a
continuous function to compute a derivative, but rather a sampled,
finite set of points. In the Savitzky-Golay filter one uses a local
polynomial approximation at each point, and then takes a derivative
of the polynomial. (So the derivative depends on the order of the
polynomial approximation, among other things.) You don't say what
your other method of computing the derivative is, but deriv.pro uses
a 3 point interpolation.

I would expect the two methods to give a similar answer for a smooth
function, but wouldn't be surprised to see them differ for a poorly-
sampled, or non-smooth function.

--Wayne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: idlastro mrdfits and strings
Next Topic: how smooth surface

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 02:12:25 PDT 2025

Total time taken to generate the page: 0.32367 seconds