This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cubic spline interpolation.


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 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]