forum.alglib.net

ALGLIB forum
It is currently Mon Nov 11, 2024 8:23 pm

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Inconsistence of fitting reulsts under different platforms
PostPosted: Thu May 14, 2020 8:36 am 
Offline

Joined: Thu May 14, 2020 7:42 am
Posts: 1
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 3861 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group