00001
00002
00003
00004 #ifndef FIT_H
00005 #define FIT_H
00006
00007 #include "weight.h"
00008
00009 static const char *fit_modelnames[] = {"linear (a*x+b)","exponentiell (a*exp(-b*x)+c)",
00010 "a*x^b","a+b*ln(x)","1/(a*x+b)","a*x*exp(-b*x)",
00011 "gaussian (a/(sqrt(2 PI) c)) exp(-(x-b)²/(2 c²))","maxwell (a v² exp(-b v²))",
00012 "planck (a v³/(exp(b v)-1))","lorentz (a/((w-b)²+c²/4))","a exp(b x)+c exp(d x)",
00013 "a exp(b x)+c exp(d x)+e exp(f x)","user defined",0};
00014
00015 static const char *fit_modelitems[] = {"a*x+b","a*exp(-b*x)+c",
00016 "a*x^b","a+b*ln(x)","1/(a*x+b)","a*x*exp(-b*x)",
00017 "a/(c*sqrt(2*pi))*exp(-(x-b)^2/(2*c^2))","a*v^2*exp(-b*v^2))",
00018 "a*v^3/(exp(b*v)-1)","a/((w-b)^2+c^2/4))","a*exp(b*x)+c*exp(d*x)",
00019 "a*exp(b*x)+c*exp(d*x)+e*exp(f*x)","a*x+b",0};
00020
00021 enum FModel {MFLINEAR,MEXP,MPOT,MLN,M1L,MEXP2,MGAUSSIAN,MMAXWELL,MPLANCK,MLORENTZ,MMULTIEXP2,MMULTIEXP3,MUSER};
00022
00023 #endif // FIT_H