This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: linear interpolation
- From: "Dan, Ho-Jin" <hjdan at sys713 dot kaist dot ac dot kr>
- To: aliceman <aliceman at wp dot pl>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Fri, 19 Jul 2002 05:12:12 +0900
- Subject: Re: linear interpolation
- References: <3D370984.4060203@wp.pl>
aliceman wrote:
Hi,
i have to use linear interpolation in my program that's why
i chose this library to help me.
could anyone write me a few-line sample code with use of
gsl_interp_linear declaration and gsl_interp_eval() function?
or, please, could anyone send me a link to the page with sample code?
when i tried to declare:
gsl_interp_linear *linear;
gsl_interp_accel *acc = gsl_interp_accel_alloc();
const gsl_interp_type* ltype = gsl_interp_linear;
gsl_interp_accel *acc = gsl_interp_accel_alloc();
gsl_interp* interp = gsl_interp_alloc(ltype, 2);
...
I hope you will figure out how "gsl_***_type" style of gsl design is
work by examples.
for example, check 1-d root finding example.
Best Regards,
--
:wq