Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Good curve-fitting routine

  1. Dec 31, 2012 #1
    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.
     
  2. jcsd
  3. Dec 31, 2012 #2

    Dr Transport

    User Avatar
    Science Advisor
    Gold Member

    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.
     
  4. Dec 31, 2012 #3

    Pythagorean

    User Avatar
    Gold Member

    Use a genetic algorithm method to find the optimal Levenberg parameters?
     
  5. Jan 1, 2013 #4
    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?
     
  6. Jan 1, 2013 #5
    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.
     
  7. Jan 1, 2013 #6
    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?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Good curve-fitting routine
  1. Curve fitting software (Replies: 5)

Loading...