Skip to content
Numerical Method , home
Menu

Forum Numerical Method Optimization

Good curve fitting routine

  1. anastasiosParticipant 2012-12-31 at 2:27 pm

    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. RyuParticipant 2013-01-01 at 5:45 am

    SuanShu has a few curve fitting routines: CubicHermite, CubicSpline, LeastSquares, LinearInterpolation, NewtonPolynomial

    Maybe you want to try these to see if they work for you: http://www.numericalmethod.com/javadoc/suanshu/com/numericalmethod/suanshu/analysis/curvefit/CurveFitting.html

  3. anastasiosParticipant 2013-01-01 at 10:26 pm

    “ryu” wrote:

    SuanShu has a few curve fitting routines: CubicHermite, CubicSpline, LeastSquares, LinearInterpolation, NewtonPolynomial

    Maybe you want to try these to see if they work for you: http://www.numericalmethod.com/javadoc/suanshu/com/numericalmethod/suanshu/analysis/curvefit/CurveFitting.html

    Hi ryu

    Thank you for your reply. The problem with this general package is that it is not flexible to use especially when the fitting model is too complicated. I spent several days in vain trying to do the fitting by Matlab. I don’t think these packages can do better than Matlab.

  4. RyuParticipant 2013-01-02 at 2:04 pm

    What are you trying to fit?