Hi, João,
The "y = 1 * sin (x * a2-a3)" is a harmonic function, so the coefficients
returning from the function call, depend heavily on the parameter a0
("initial guess for each fitting parameter") you will send as the third
parameter of the nonlinear_fit function (with maxiter=200_000):
a0=[1
hello tshort
I published this post on the "stack". the solution presented has errors in
the coefficients.
Em sábado, 23 de janeiro de 2016 14:08:07 UTC-2, tshort escreveu:
>
> One link:
>
>
> http://stackoverflow.com/questions/34840875/julia-using-curvefit-package-non-linear
> On Jan 23, 2016
One link:
http://stackoverflow.com/questions/34840875/julia-using-curvefit-package-non-linear
On Jan 23, 2016 10:13 AM, wrote:
> I wish someone would publish a nonlinear fitting code using package
> CurveFit
> using this data, how we can use CurveFit?
>
> x = [0.0 0.2 0.4 1.0 1.6 1.8 2.0 2.6 2.8
I wish someone would publish a nonlinear fitting code using package CurveFit
using this data, how we can use CurveFit?
x = [0.0 0.2 0.4 1.0 1.6 1.8 2.0 2.6 2.8 3.0 3.8 4.8 5.0 5.2 6.0 6.2 7.4
7.6 7.8 8.6 8.8 9.0 9.2 9.4 10.0 10.6 10.8 11.2 11.6 11.8 12.2 12.4];
y = [-0.183 -0.131 0.027 0.3 0.579