Do you know of code (preferably C/C++) to do this for non linear least squares? i found a program called levmar on the internet, but it seems inadequately documented on how to use it and probably not so useful to my purposes.(adsbygoogle = window.adsbygoogle || []).push({});

My problem is evaluation of a carpet. The middle is worn out and it is laser scanned. i have a point cloud of about a couple of hundred thousand pointsand I need to model the following profile through it. Desired to find are the lengths l1, l2 l3, l4 (l5=width of carpet-l1-l2-l3-l4) and the height difference z. I have to find this using Least Squares Fitting. This seems quite non linear (unless maybe around good initial values which could be found) and the partial derivatives would also have to be determined approximatingly and numerically.

Code (Text):[FONT="Courier New"]-------------\ /--------------- ^

\-------------------/ | z[/FONT]

l1 l2 l3 l4 l5 |

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Numerical analysis

Loading...

Similar Threads - Numerical analysis | Date |
---|---|

Python Numerical integration 'quad' error | Jan 29, 2018 |

Plotting Orbits on MATLAB | Aug 16, 2016 |

Analysis of Image superimposing using numerical analysis | Mar 8, 2013 |

Numerical Analysis - Finding the Rate of Convergence | Jul 1, 2006 |

Numerical Analysis - Construction of a Poincare surface of section | Jun 6, 2006 |

**Physics Forums - The Fusion of Science and Community**