[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] fitting - nonconstant point distance

From: Jordi Gutierrez Hermoso
Subject: Re: [Help-gsl] fitting - nonconstant point distance
Date: Sat, 25 Nov 2006 16:25:08 -0600

On 25/11/06, Petr Ent <address@hidden> wrote:
I would like to know if it is possible to fit points, which have nonconstant 
(for example I know values in time 0,1,3,5,8,10,11). Is it possible to set this

What do you mean by "fit"? Do you want to interpolate or to regress?
What you want to do is possible in either case. If you want to
interpolate, look at chapter 26 of the GSL manual, and I recommend
studying the sample code in section 26.7 that can easily be adapted to
do something akin to what you want to do. For interpolation, you can
pass as a parameter an array to gsl_interp_init that gives the points
at which you know the value of your function.

If instead what you want to do is regression, look at chapters 36 and
37 of the GSL manual. Chapter 36 is for linear regression and 37 for
nonlinear regression.

- Jordi G. H.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]