C# implementation of Levenberg–Marquardt algorithm

16k Views Asked by At

I am looking for a C# implementation of the Levenberg–Marquardt algorithm for non-linear least squares fit.

3

There are 3 best solutions below

7
On BEST ANSWER

Levenberg-Marquardt.NET by Krzysztof Kniaz has worked very well for me.

1
On

You might want to try csmpfit. It is open source.

Update:

The project has been moved to GitHub at https://github.com/cureos/csmpfit.

0
On

Here is an explanation article plus C# code:

http://www.imagingshop.com/articles/least-squares

It uses Math.NET Numerics for linear algebra to simplify the Levenberg-Marquardt algorithm.