Hallo!
I have to fit some peaks with a gauss function on quadratic background, so I’ve defined:
Double_t gaus_lau (Double_t *x, Double_t *par)
{
Double_t pi = 3.1415926535;
Double_t xx =x[0];
return par[2]*exp(-(pow(((xx-par[0])/par[1]),2))/2) + par[3] + par[4]*xx + par[5] * xx * xx;
}
The problem now is that these peaks have a tail on one side, so I would like to use an unsymmetrical function…something like a gauss function with 2 different FWHM…but I don’t know how to do this
can you help me? Thank you!
Actually FWHM is proportional to sigma ( par[1] in your function ).
It is needed to add another parameter, since you have two sigmas.
In the following there is an example how to that,.
Maybe there are simpler ways also, but I don’t know…