GIRAFFE Pipeline Reference Manual

gilevenberg.h

00001 /* $Id: gilevenberg.h,v 1.5 2007/03/12 12:53:23 rpalsa Exp $
00002  *
00003  * This file is part of the GIRAFFE Pipeline
00004  * Copyright (C) 2002-2006 European Southern Observatory
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019  */
00020 
00021 /*
00022  * $Author: rpalsa $
00023  * $Date: 2007/03/12 12:53:23 $
00024  * $Revision: 1.5 $
00025  * $Name: giraffe-2_9 $
00026  */
00027 
00028 #ifndef GILEVENBERG_H
00029 #define GILEVENBERG_H
00030 
00031 #include <cxtypes.h>
00032 
00033 #include <cpl_macros.h>
00034 #include <cpl_matrix.h>
00035 
00036 
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif
00040 
00041 
00047 struct GiFitParams {
00048 
00053     cxint iterations;
00054 
00059     cxint tests;
00060 
00064     cxdouble dchisq;
00065 
00066 };
00067 
00068 typedef struct GiFitParams GiFitParams;
00069 
00070 
00076 typedef void (*GiFitFunc)(cxdouble *result, cxdouble *x, cxdouble *a,
00077                           cxint na, cxdouble *dyda, cxdouble *r);
00078 
00079 
00080 cxint giraffe_nlfit(cpl_matrix *x, cpl_matrix *y, cpl_matrix *sigma,
00081                     cxint ndata, cpl_matrix *a, cpl_matrix *delta,
00082                     cxint *ia, cxint ma, cpl_matrix *alpha, cxdouble *chisq,
00083                     GiFitFunc funcs, const GiFitParams *setup);
00084 
00085 
00086 #ifdef __cplusplus
00087 }
00088 #endif
00089 
00090 #endif /* GILEVENBERG_H */

This file is part of the GIRAFFE Pipeline Reference Manual 2.9.0.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Jan 26 14:20:28 2012 by doxygen 1.6.3 written by Dimitri van Heesch, © 1997-2004