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

  • Thread starter Thread starter james4321
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 3K views
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
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?