comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: 3D Curve Fitting
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: 3D Curve Fitting [message #62748 is a reply to message #62747] Wed, 01 October 2008 09:53 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
jaz <jazpearson@gmail.com> writes:
> Yeah i've seen this, but it only seems to do up to 2D. Or am i missing
> a trick here?

MPFIT doesn't really care about the dimensionality of your data. All
it really needs is a function which returns a set of residuals. For
example, if you have a set of measured *heights* above the XY plane,
and want to fit to the surface function Z(X,Y), then, you can easily
do something like,
MPFITFUN('MYFUNC', [X,Y], Z, ...)
As long as your MYFUNC handles several stacked input variables, it
should easily be able to return the model Z heights.

More information,
http://cow.physics.wisc.edu/~craigm/idl/fitqa.html#multivar

But your original question said you wanted to "fit a curve to some
points in 3D space ... such as a quartic..." That's a little too
generic. A quartic function of *what*?

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: cbmarkwardt+usenet@gmail.com
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Updates to Popular Coyote Library Programs
Next Topic: Re: Venn diagram?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 09:09:15 PDT 2025

Total time taken to generate the page: 1.51879 seconds