Reliable Curve-Fitting Routine in C/C++ | Get Expert Advice

  • Thread starter Thread starter james4321
  • Start date Start date
AI Thread Summary
A user is seeking a reliable curve-fitting routine in C or C++ and currently uses the Levenberg-Marquardt method, which has been failing frequently. Suggestions indicate that adjusting fitting parameters in this routine could enhance its robustness. The idea of employing a genetic algorithm to optimize these parameters is proposed, but the user lacks expertise in genetic algorithms. They are looking for recommendations on accessible code or packages to implement genetic algorithms effectively. The discussion emphasizes the need for improved fitting techniques for challenging data sets.
james4321
Messages
6
Reaction score
0
I am looking for a reliable curve fitting routine (preferrably in C or C++). Currently I use Levenberg-Marquardt routine from numerical recipes but it fails frequently. Your adivce will be appreciated.
 
Physics news on Phys.org
your choice of fitting parameters in the Levenberg-Marquardt routine needs to be changed, usually that is one of the most robust methodologies out there.
 
Use a genetic algorithm method to find the optimal Levenberg parameters?
 
Thank you Dr Transport and Pythagorean for you reply.

"your choice of fitting parameters in the Levenberg-Marquardt routine needs to be changed"
I do this but some data are very difficult to fit even with this.

"Use a genetic algorithm method to find the optimal Levenberg parameters?"
Unfortunately I have no expertise in genetic algorithms. I wish I know how to use these algorithms as they are very useful. Do you recommend any code or package that can do this with little experience?
 
Thank you Dr Transport for you reply.

"your choice of fitting parameters in the Levenberg-Marquardt routine needs to be changed"
I do this but some data are very difficult to fit even with this.
 
Thank you Pythagorean for you reply.

"Use a genetic algorithm method to find the optimal Levenberg parameters?"
Unfortunately I have no expertise in genetic algorithms. I wish I know how to use these algorithms as they are very useful. Do you recommend any code or package that can do this with little experience?
 
Back
Top