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

Home » Public Forums » archive » Re: getting derivatives from spline
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: getting derivatives from spline [message #66043 is a reply to message #66029] Mon, 13 April 2009 09:54 Go to previous messageGo to previous message
jameskuyper is currently offline  jameskuyper
Messages: 79
Registered: October 2007
Member
Jeremy Bailin wrote:
> Does anyone know a way of getting SPLINE or any of its friends to
> return the derivatives of the interpolating function at the desired
> abscissae in addition to the interpolated values?
>
> Or, another way of getting at this question: what is everyone's
> favourite algorithm for numerically calculating the derivatives of
> (slightly) noisy data?

Don't use splines to fit noisy data. The spline treats the noise as
being just as real as the signal. Particularly with higher-order
splines, it's easy to end up with interpolated data which looks even
noisier than the raw data.

Instead, fit the noisy data to a model with fewer free parameters than
you have data points. The difference between the number of data points
and the number of free parameters is a measure of the amount of
information you're discarding. If you've made a good choice of model,
the information you're discarding will be about the noise; with a bad
model, you'll be discarding information about the signal. Choosing the
right model for your data is therefore a key step in this process.

The fundamental problem with using splines is that the number of data
points is the same as the number of free parameters - you aren't
discarding any noise.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL 7.0 on Ubuntu 7.10+ / Debian 5.0
Next Topic: Re: How to set the default working directory?

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

Current Time: Fri Oct 10 19:39:01 PDT 2025

Total time taken to generate the page: 0.56106 seconds