Question: Using an independent parameter for FitFunc?
Sun, 09/13/2020 - 10:39 am
Is it possible to fit a parameter w[n] that is independent of x? In my case I would like to compensate shifts.
wave wave0 = root:pathofwave:wave0
wave wave1 = root:pathofwave:wave1
//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/ f(x) = a*wave0(x+c)+b*wave1+d
//CurveFitDialog/ End of Equation
//CurveFitDialog/ Independent Variables 1
//CurveFitDialog/ Coefficients 4
//CurveFitDialog/ w = wave0
//CurveFitDialog/ w = wave1
//CurveFitDialog/ w = shiftofwave0
//CurveFitDialog/ w = abs
return w*wave0(x+w) + w*wave1(x) +w
When I try to fit a function that matches the one shown above, I get the following error message:
FitProgressDialog allocating a dialogFitFunction instance **** Singular matrix error during curve fitting **** There may be no dependence on these parameters: W_coef
Did I do something basically wrong or is there a trick to fit such a shift?