Biochemistry-Adair Equation
csk1984
I am trying to fit some biochemical data and I will need to use the Adair equation which describes multiple binding equilibria. In order to do that, I have to generate a user-defined function that will contain all the Adair equation's unknowns and parameters. Has anybody ever done that?
The fitfunction itself is simple. However, the interface to the fitting dialogue could be a mess for an unknown amount of sites. Command line / function call will be ok.
HJ
June 6, 2018 at 02:42 pm - Permalink
June 13, 2018 at 12:06 pm - Permalink
Wave w
Variable X
//CurveFitDialog/ These comments were created by the Curve Fitting dialog. Altering them will
//CurveFitDialog/ make the function less convenient to work with in the Curve Fitting dialog.
//CurveFitDialog/ Equation:
//CurveFitDialog/ f(X) = (1/4)*(K1*X + 2*K2*X^2)/(1 + K1*X + K2*X^2)
//CurveFitDialog/ End of Equation
//CurveFitDialog/ Independent Variables 1
//CurveFitDialog/ X
//CurveFitDialog/ Coefficients 2
//CurveFitDialog/ w[0] = K1
//CurveFitDialog/ w[1] = K2
return (1/2)*(w[0]*X + 2*w[1]*X^2)/(1 + w[0]*X + w[1]*X^2)
End
June 14, 2018 at 11:28 am - Permalink
June 14, 2018 at 10:52 am - Permalink
Wave ww
Variable xx
// ww - coefficients
// ww[0] is number of binding sites
// ww[n] are K factors for each n site
variable nrtn=0, drtn=1, ic
for (ic=1;ic<=ww[0];ic+1)
nrtn += ic*ww[ic]*xx^ic
endfor
for (ic=1;ic<ww[0];ic+1)
drtn += ic*ww[ic]*xx^(ic-1)
endfor
return ((1/ww[0])*nrtn/drtn)
End
June 14, 2018 at 11:37 am - Permalink
June 26, 2018 at 10:23 am - Permalink