forum.alglib.net
http://forum.alglib.net/

Inconsistence of fitting reulsts under different platforms
http://forum.alglib.net/viewtopic.php?f=2&t=4324
Page 1 of 1

Author:  jchga [ Thu May 14, 2020 8:36 am ]
Post subject:  Inconsistence of fitting reulsts under different platforms

I tried modifying the "lsfit_d_nlf" example of the .net ALGLIB library under C# and VB to fit a single-exponential decay curve.

y=a+b*exp(-c*x)

Please see the attached figure for the details.
Basically, I first generate the data with pre-specified coefficients a=1.4, b=4.5, c=0.54 under the two platforms, and do the unweighted fitting.
Under C#, the library works flawlessly and gives me (a,b,c)=(1.4,4.5,0.54).
Under VB, the fitted results are (a,b,c) = (1.25,3.72,0.39), which is far from desirable.

Does anyone know why there is such a discrepancy? Any suggestion to solve this issue will be appreciated!

Attachments:
File comment: Fitting results under 2 platforms
alglib.png
alglib.png [ 36.32 KiB | Viewed 4206 times ]

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/