lstsq.c File Reference

Detailed Description

This file contains the general code for performing nonlinear least square's fitting, using the GNU scientific library. Please refer to the module <Non-linear least squares> for how this file works


int lstsq_main (Parratt *d)
 The main function for Non-linear least squares.
int lstsq_fdf (const gsl_vector *params, void *data, gsl_vector *f, gsl_matrix *J)
 Required by the GSL library.
int lstsq_f (const gsl_vector *params, void *data, gsl_vector *f)
 Calculates the residuals.
int lstsq_df (const gsl_vector *params, void *data, gsl_matrix *J)
 Calculates the Jacobian matrix.
double lstsq_derivatives1 (double p, void *data)
 Numerically calculate the residual gradients.
double lstsq_derivatives2 (double p, void *data)
 Numerically calculate the residual gradients.
void lstsq_status (int i, gsl_multifit_fdfsolver *s, gsl_matrix *c, Parratt *d)
 Updates the fit to stdout.

Generated on Wed Mar 14 13:24:56 2007 for Parratt by  doxygen 1.4.7