Nonlinear least squares problem

Click For Summary
SUMMARY

The discussion centers on solving a nonlinear least squares fitting problem involving parametric equations to determine constants a, b, c, x0, y0, and z0 from pixel data (u', v'). The user, Ciaran, seeks to derive a nonparametric equation from the given parametric equations to facilitate the fitting process. He encounters difficulties using the 'solve' function in MATLAB's Symbolic Toolbox, leading to questions about the necessity and feasibility of obtaining a nonparametric equation for the curve. The consensus is that a nonparametric equation is essential for the nonlinear least squares fit, and the challenges in deriving it stem from the complexity of the equations involved.

PREREQUISITES
  • Understanding of nonlinear least squares fitting techniques
  • Familiarity with parametric and nonparametric equations
  • Proficiency in MATLAB, particularly the Symbolic Toolbox
  • Basic knowledge of curve fitting and optimization methods
NEXT STEPS
  • Research methods for deriving nonparametric equations from parametric forms
  • Explore MATLAB's Symbolic Toolbox documentation for advanced solving techniques
  • Learn about nonlinear optimization algorithms applicable to least squares problems
  • Investigate alternative software tools for curve fitting, such as Python's SciPy library
USEFUL FOR

Researchers, data scientists, and engineers involved in curve fitting, particularly those working with image data and seeking to apply nonlinear least squares methods for parameter estimation.

ciaran_hughes
Messages
1
Reaction score
0
Dear all,

Apologies if this is in the wrong forum.

I have a bit Nonlinear least squares fit problem. I have a pair of parametric equations (see attached, fairly nasty :frown: ).

in it, a b c x0 y0 z0 are all constant, and they are the values I want to determine from a nonlinear least squares fit to a given set of (u', v') data. (u', v') are a set of pixel locations of a curve in an image, and the equations attached describe that curve.

Now, to do a nonlinear least squares, I believe I have to get a single nonparametric function (e.g. of v' in terms of u'). To do this, I follow the standard steps of solving one of the equations in terms of t, and substitute into the other. This is where I fail.

I have even used the 'solve' function in the Symbolic Toolbox in MATLAB to solve one of the equations for t, but simply get an error.

So, my questions are:
1) Am I right in saying I must get the non-parametric equation for the curve to get a nonlinear least squares fit to the data points? I assume that I do, because t is an extra variable that I a) don't need and b) have no information for.
2) Can a nonparametric equation for this curve be obtained (from the attached equations)? Why?

Ultimately, I would like to know if I can do a nonlinear least squares fit to these parametric equations. If I can't, or if it would prove very difficult, why?

Many thanks for your time,
Ciaran
 

Attachments

  • equations.GIF
    equations.GIF
    4.8 KB · Views: 636
Engineering news on Phys.org
A least squares fit produces a function based on a collection of data.

If you have the function and want to produce data, it is called evaluation.

So you're thinking about least squares backward.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
6
Views
1K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K