This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Cubic spline interpolation.
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Andrea Riciputi <ariciputi at pito dot com>
- Cc: Gnu Scientific Library <gsl-discuss at sources dot redhat dot com>
- Date: Tue, 20 Jan 2004 11:27:01 +0000
- Subject: Re: Cubic spline interpolation.
- References: <5B8E38DE-4843-11D8-9CFE-000393933E4E@pito.com>
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