Home | History | Annotate | Download | only in lib
      1 /*
      2  * Library:   lmfit (Levenberg-Marquardt least squares fitting)
      3  *
      4  * File:      lmcurve_tyd.h
      5  *
      6  * Contents:  Declares lmcurve_tyd(), a variant of lmcurve() that weighs
      7  *            data points y(t) with the inverse of the standard deviations dy.
      8  *
      9  * Copyright: Joachim Wuttke, Forschungszentrum Juelich GmbH (2004-2013)
     10  *
     11  * License:   see ../COPYING (FreeBSD)
     12  *
     13  * Homepage:  apps.jcns.fz-juelich.de/lmfit
     14  */
     15 
     16 #ifndef LMCURVETYD_H
     17 #define LMCURVETYD_H
     18 #undef __BEGIN_DECLS
     19 #undef __END_DECLS
     20 #ifdef __cplusplus
     21 #define __BEGIN_DECLS extern "C" {
     22 #define __END_DECLS }
     23 #else
     24 #define __BEGIN_DECLS /* empty */
     25 #define __END_DECLS   /* empty */
     26 #endif
     27 
     28 #include <lmstruct.h>
     29 
     30 __BEGIN_DECLS
     31 
     32 void lmcurve_tyd(
     33     const int n_par, double* par, const int m_dat,
     34     const double* t, const double* y, const double* dy,
     35     double (*f)(double t, const double* par),
     36     const lm_control_struct* control, lm_status_struct* status);
     37 
     38 __END_DECLS
     39 #endif /* LMCURVETYD_H */
     40