yanera_util.h File Reference

Detailed Description

This file contains linked-list and memory utility functions.

Definition in file yanera_util.h.

Go to the source code of this file.


yanera_containeryanera_initialize (const char *filename)
 Allocates a new yanera_container.
void yanera_free (yanera_container *yanera)
 Frees the memory.
void yanera_report (yanera_container *yanera, int iteration, void *solver)
 General reporting routine for fitting progress updates.
int yanera_find_errors (yanera_container *yanera)
 Determines the fit parameter errors.

Function Documentation

yanera_container* yanera_initialize ( const char *  filename  ) 

A newly allocated yanera_container.
Allocated memory for a new yanera_container.

Definition at line 30 of file yanera_util.c.

void yanera_free ( yanera_container yanera  ) 

yanera The yanera_container to free.
This recursively walks through the yanera_container, freeing everything that may heve been allocated memory.

Definition at line 166 of file yanera_util.c.

void yanera_report ( yanera_container yanera,
int  iteration,
void *  solver 

This function wrties to stderr the current status (iteration number, chi sqaured)of the fitting routines. Called with -1 at the iteration number, it assumes the fit is finished and write to file the results, if the proper flags are selected.

Definition at line 292 of file yanera_util.c.

int yanera_find_errors ( yanera_container yanera  ) 

This function borrows from the least sqaures to determine the covariance matrix and find the uncertainties of the fitted parameters.

Definition at line 451 of file yanera_util.c.

Generated on Thu May 29 10:56:33 2008 by  doxygen 1.5.5