Re: Need help in curve fitting



Sumit Tandon wrote:

Thanks for the help Duane and John,

I am trying it out. I just have to keep an eye on the error.

I had one more query...what happens if the points dont lie on the
periphery of an ellipse/circle....then is there any way of getting
an
equation which for the closed loop on which they lie ? ...fitting
an
ellipse in that case may result in a large error...

i have heard of NURBS....but i dont have any experience in
that...does it give an equation as an output, to represent the
collection of points....if so, is there any MATLAB code available
online that i can use for simulation...

The problem is, if its not an ellipse,
then what is it? There are an infinite
number of model forms that you might
pose. Finding an "equation" that
represents the curve is not always
a simple task.

If you can find the "center" of the
curve, then perhaps you might convert
to polar coordinates. Form a model for
r(theta), perhaps using a least squares
spline. Given that you use a spline,
the actual origin for this coordinate
system need not be perfectly chosen.

John
.



Relevant Pages

  • Re: Confusion about splitting classes to allow sharing of resources
    ... > selecting algorithms is a good job for patterns like Strategy. ... Spline classes, such as LinearSpline and CubicSpline, based on the same ... The higher-level class Curve should be able to select ... >> interpolation data gets regenerated. ...
    (comp.object)
  • Re: Revolve 3D curve?
    ... Hardly surprising, for the "2 sketch" sweep, that it conforms exactly. ... spline, being the starting profile for the sweep, forms a boundary of the ... I would expect that divergence would not be ... > the 3D curve. ...
    (comp.cad.solidworks)
  • Re: Confusion about splitting classes to allow sharing of resources
    ... I have a working Spline ... >> Along with the splines for x and y, the Curve class also has one ... >> Adding new interpolation variables in subclasses of Curve will then ... instantiate the relevant Nodes and add them to the R5 ...
    (comp.object)
  • Re: B-spline sampling?
    ... To sample the spline, and that works well. ... neighboring spheres, so they look like pearls on a string. ... My curve is the type, where you have a knot and a mirroed tangent vector ... if you have an arclength parameterization ...
    (comp.graphics.algorithms)
  • Importing parametric splines from Mathcad (or Excel book) to SW
    ... work is done by simulation and analysis in MathCad v13. ... surfaces, transducer, dynamic stresses, all ... How do I get a parametric curve on my data points into SW. ... It works very well to generate parametric spline ...
    (comp.cad.solidworks)