help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gsl] fitting example


From: Petr Ent
Subject: [Help-gsl] fitting example
Date: Tue, 18 Jul 2006 20:48:39 +0200 (CEST)

hi,
i have next (hopefully last :-) ) question about non-linear fitting example. 
function 
    
int expb_f (const gsl_vector * x, void *data,  gsl_vector * f)
"this function should store the vector result f(x,params) in f for argument x 
and arbitrary parameters params"

i understand it that you should compute the value of your function to be fitted 
with current results (x vector) and store it to vector f. but in this example, 
you do that + substract "real value" (y_i) from it and divide it by deviation 
(sigma_i).

gsl_vector_set (f, i, (Yi - y[i])/sigma[i]);

why do you do that? and what if you dont know deviation of data to be fitted?

thanks for answering
Petr Ent





reply via email to

[Prev in Thread] Current Thread [Next in Thread]