ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
lmfit.h
Go to the documentation of this file.
1 /*
2  * Project: LevenbergMarquardtLeastSquaresFitting
3  * code obtained from http://sourceforge.net/projects/lmfit/
4  * Contents: optimize p to fit CRDC data y(x)
5  * sechs: p(0)/cosh((log(sqrt(2)+1)/sqrt(2*log(2)))*((x-p(1))/p(2))^2
6  * gaussian: p(0)*exp(-(x-p(1))^2/(2*p(2)^2))
7  * height: p(0), centroid: p(1), FWHM: 2*sqrt(2*log(2))*p(3)
8  * Author: Shumpei Noji
9  */
10 
11 #ifndef LMFIT_H
12 #define LMFIT_H
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 double sechs(double x, const double *p);
19 double gauss(double x, const double *p);
20 
21 #ifdef __cplusplus
22 }
23 #endif
24 
25 #endif /* LMFIT_H */
gauss
double gauss(double x, const double *p)
Definition: lmfit.cxx:21
sechs
double sechs(double x, const double *p)
Definition: lmfit.cxx:15