On 25/11/06, Petr Ent <address@hidden> wrote:
> I would like to know if it is possible to fit points, which have nonconstant
distance
> (for example I know values in time 0,1,3,5,8,10,11). Is it possible to set
this
> somewhere?
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.
HTH,
- Jordi G. H.