Re: [Help-gsl] 1st attempt at fitting a Gaussian function with GSL.

2005-12-21 Thread James Bergstra
Hi Dave, Maybe we could take this thread off of gsl-help? Your issues seem more related to statistics and C programming, and less with the GSL. I'll be happy to help you via personal correspondance. James On Wed, Dec 21, 2005 at 04:22:57PM -0600, David Eric Miller wrote: > Hi James, > > You a

Re: [Help-gsl] 1st attempt at fitting a Gaussian function with GSL.

2005-12-21 Thread David Eric Miller
Hi James, You are quite correct. I am attempting to do a Chi Squared minimization parameter estimation. I did not put all of the necessary pieces into my previous email since I was just starting to figure out how to use gsl. If you could take a look at my last posting, I have a more complete t

Re: [Help-gsl] 1st attempt at fitting a Gaussian function with GSL.

2005-12-21 Thread David Eric Miller
Thank you Joakim, Let me begin by restating your instructions as I understood them. (These are parts A and B below.) And then attempt to continue with the fit. Please note that the "code" below is full of syntax errors. The attachment is much cleaner. It nearly complies except for the error:

Re: [Help-gsl] 1st attempt at fitting a Gaussian function with GSL.

2005-12-21 Thread mail
If Gaussian means s.th. like exp(-x^2) the I would first fit log(y) against x and then refine (usually you want some weightings around the mean to catch it better). If it means against the integral you will want to cut off the tails first (and refine later). On 20 Dec 2005 at 11:27, David Eric Mil