#include <gsl_fit.h>
where is the last step and
is the current position. If test_gradient is true, then additionally fit() requires that
where is the
-th component of the gradient of the function
where
Definition at line 87 of file gsl_fit.h.
Data Structures | |
struct | func_par |
A structure for passing to the functions func(), dfunc(), and fdfunc(). More... | |
Public Member Functions | |
virtual int | fit (size_t ndat, vec_t &xdat, vec_t &ydat, vec_t &yerr, size_t npar, vec_t &par, mat_t &covar, double &chi2, param_t &pa, func_t &fitfun) |
Fit the data specified in (xdat,ydat) to the function fitfun with the parameters in par . | |
virtual const char * | type () |
Return string denoting type ("gsl_fit"). | |
Data Fields | |
int | max_iter |
(default 500) | |
double | epsabs |
(default 1.0e-4) | |
double | epsrel |
(default 1.0e-4) | |
bool | test_gradient |
If true, test the gradient also (default false). | |
bool | use_scaled |
Use the scaled routine if true (default true). | |
Protected Member Functions | |
virtual int | print_iter (int nv, gsl_vector *x, gsl_vector *dx, int iter, double l_epsabs, double l_epsrel) |
Print the progress in the current iteration. | |
Static Protected Member Functions | |
static int | func (const gsl_vector *x, void *pa, gsl_vector *f) |
Evaluate the function. | |
static int | dfunc (const gsl_vector *x, void *pa, gsl_matrix *jac) |
Evaluate the jacobian. | |
static int | fdfunc (const gsl_vector *x, void *pa, gsl_vector *f, gsl_matrix *jac) |
Evaluate the function and the jacobian. |
virtual int fit | ( | size_t | ndat, | |
vec_t & | xdat, | |||
vec_t & | ydat, | |||
vec_t & | yerr, | |||
size_t | npar, | |||
vec_t & | par, | |||
mat_t & | covar, | |||
double & | chi2, | |||
param_t & | pa, | |||
func_t & | fitfun | |||
) | [inline, virtual] |
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.
Project hosting provided by
,
O2scl Sourceforge Project Page