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

  • Thread starter Thread starter james4321
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on the challenges of implementing a reliable curve-fitting routine in C or C++. Users are currently utilizing the Levenberg-Marquardt routine from Numerical Recipes but encounter frequent failures. Recommendations include adjusting fitting parameters and considering genetic algorithms to optimize these parameters. Participants express a need for accessible resources or code to implement genetic algorithms due to their lack of expertise in this area.

PREREQUISITES
  • Understanding of the Levenberg-Marquardt algorithm
  • Familiarity with curve fitting techniques
  • Basic knowledge of genetic algorithms
  • Proficiency in C or C++ programming
NEXT STEPS
  • Research the implementation of the Levenberg-Marquardt algorithm in C/C++
  • Explore genetic algorithm libraries suitable for C/C++
  • Learn about parameter tuning techniques for curve fitting
  • Investigate alternative curve fitting methods beyond Levenberg-Marquardt
USEFUL FOR

Data scientists, software developers, and researchers involved in numerical analysis and curve fitting who seek to enhance their methodologies and overcome fitting challenges.

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?
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 5 ·
Replies
5
Views
5K