Cubic spline interpolation.
Brian Gough
bjg@network-theory.co.uk
Tue Jan 20 11:27:00 GMT 2004
Andrea Riciputi writes:
> Hi,
> I need the coeficient of a cubic spline interpolation. How can I get
> them out of the GSL structure after the usuals:
>
> gsl_interp_accel *acc
> = gsl_interp_accel_alloc ();
> gsl_spline *spline
> = gsl_spline_alloc (gsl_interp_cspline, 10);
>
> gsl_spline_init (spline, x, y, 10);
> calls?? I've poked around the GSL code and I know they are within the
> "spline" structure but I can't realize where.
They are in cspline.c. (via spline->interp->state)
Because they are specific to the cspline algorithm, and not generic,
they are not accessible through the normal interface.
--
Brian
More information about the Gsl-discuss
mailing list