Hi,
You can define an Origin C fitting function, if you are using Origin 7.5.
The function parameters are: y0, A, mu, w1, w2, xc
And the function body is:
double q1, q2, b;
if (x<xc)
q1 = A * ( mu * (2/PI) * (w1 / (4*(x-xc)^2 + w1^2)) + (1 - mu) * (sqrt(4*ln(2)) / (sqrt(PI) * w1)) * exp(-(4*ln(2)/w1^2)*(x-xc)^2) );
else
q2 = A * ( mu * (2/PI) * (w2 / (4*(x-xc)^2 + w2^2)) + (1 - mu) * (sqrt(4*ln(2)) / (sqrt(PI) * w2)) * exp(-(4*ln(2)/w2^2)*(x-xc)^2) );
b = ((2/PI)+(1/w1)*(sqrt(4*ln(2))))/((2/PI)+(1/w2)*(sqrt(4*ln(2))));
y = y0 + 2*(q1 + b*q2)/(1+b);
Thanks
Larry
OriginLab Technical Services