This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: minimize and cspline
- From: Zunbeltz Izaola <zunbeltz at lcdx00 dot wm dot lc dot ehu dot es>
- To: Alan Aspuru-Guzik <aspuru at okra dot cchem dot Berkeley dot edu>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Fri, 10 Oct 2003 10:55:20 +0200 (MET DST)
- Subject: Re: minimize and cspline
On Thu, 9 Oct 2003, Alan Aspuru-Guzik wrote:
> Kaixo Zunbeltz,
>
> The spline documentation is here
> http://sources.redhat.com/gsl/ref/gsl-ref_26.html#SEC389
>
> And a specific example of how to do that is:
> http://sources.redhat.com/gsl/ref/gsl-ref_26.html#SEC396
>
> What I would do, is create a gsl_vector for the data points you have.
>
> And then find the maximium element using:
> http://sources.redhat.com/gsl/ref/gsl-ref_8.html#SEC165
>
The point is that the maximun of the array is not the maximum of a "good
enough" (smooth) function that fit this point. I'm in the way to solve
this problem. I didn't realize that i can use sl_spline_eval() in the
function to be maximized, wrapping it in a fuction type with parameters =0
Zunbeltz
> The bottomline is that the manual has excellent examples.
>
> If you want to support the GSL effort, I would recommend to get a printed
> copy of the manual. I have one, and it is very nice and convenient as
> well.
>
> http://www.network-theory.co.uk/gsl/manual/
>
> (Or if you are feeling cheapskate, the PDF version is downloadable from
> the same page).
>
> If you still have questions, feel free to ask them
> Alan Aspuru-Guzik
>
>
> On Thu, 9 Oct 2003, Zunbeltz Izaola wrote:
>
> > HI,
> >
> > I'm new to gsl. I've a array with the values of a function. I want to do a
> > cspline of the points and then find the maximun of the function. Is it
> > possible? I'm reading the documnetation but i can't find how.
> >
> > thanks in advance
> >
> > Zunbeltz
> >
> >
>
> --
>
> Alan Aspuru-Guzik Dios mueve al jugador, y éste, la pieza.
> (510)642-2154 UC Berkeley ¿Qué Dios detrás de Dios la trama empieza
> de polvo y tiempo y sueño y agonías? -Borges
>