Function Fit (1 and multi-dimensional)


Detailed Description

This chapter describes functions for multidimensional linear and nonlinear least-squares fitting.

The library provides low level components for a variety of iterative solvers and convergence tests. These can be combined by the user to achieve the desired solution, with full access to the intermediate steps of the iteration. Each class of methods uses the same framework, so that you can switch between solvers at runtime without needing to recompile your program. Each instance of a solver keeps track of its own state, allowing the solvers to be used in multi-threaded programs.

Todo:
Check these classes

Implement test-suite


Classes

class  gslmm::linear< 1 >
 Class template to do $ \chi^2$ fits to experimental data using linear combinations of functions. More...
class  gslmm::linear< 2 >
 Class template to do $ \chi^2$ fits to experimental data using linear combinations of functions. More...
class  gslmm::fitter< Client >
 Class template for fitting arbitriary objects. More...
class  gslmm::linear< np >
 Class template to do $ \chi^2$ fits to experimental data using linear combinations of functions. More...

Functions

template<typename Client>
int gslmm::fit_f_function (const gsl_vector *x, void *params, gsl_vector *f)
template<typename Client>
int gslmm::fit_df_function (const gsl_vector *x, void *params, gsl_matrix *j)
template<typename Client>
int gslmm::fit_fdf_function (const gsl_vector *x, void *params, gsl_vector *f, gsl_matrix *j)


Function Documentation

template<typename Client>
int gslmm::@0::fit_df_function const gsl_vector *  x,
void *  params,
gsl_matrix *  j
[static]
 

Helper function for fits.

Parameters:
x The current values the parameters
params A pointer to the object to fit
j On return, the Jacobian matrix $ j_{ij} = d f_i(x) / d x_j $
Returns:
If the evaluation worked, 0, otherwise an appropriate error code

template<typename Client>
int gslmm::@0::fit_f_function const gsl_vector *  x,
void *  params,
gsl_vector *  f
[static]
 

Helper function for fits.

Parameters:
x The current values the parameters
params A pointer to the object to fit
f On return, the function to minimize evaluated at all data points
Returns:
If the evaluation worked, 0, otherwise an appropriate error code

template<typename Client>
int gslmm::@0::fit_fdf_function const gsl_vector *  x,
void *  params,
gsl_vector *  f,
gsl_matrix *  j
[static]
 

Helper function for fits.

Parameters:
x The current values the parameters
params A pointer to the object to fit
f On return, the function to minimize evaluated at all data points
j On return, the Jacobian matrix $ j_{ij} = d f_i(x) / d x_j $
Returns:
If the evaluation worked, 0, otherwise an appropriate error code

Top of page Last update Tue May 9 10:11:26 2006
Christian Holm
Created by DoxyGen 1.4.6