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 #62747 is a reply to message #62744] Wed, 01 October 2008 10:07 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Wox <nomail@hotmail.com> writes:
>
> Sorry for the confusing, it must be: "If you have 3 DEPENDENT
> variables, you can't use mpfit or curvefit or whatever"

I don't think your claim is correct. If you have the independent
variable, X, and *two* measurements per X point, (say Y and Z) then it
is straightforward to fit both of those points simultaneously. That
is effectively fitting a 2D function. The method is the same,
MPFITFUN('MYFUNCT', X, [Y, Z], [ERR_Y, ERR_Z], ...)
and your function is responsible for computing both functions
separately and then stacking them together.

> The point is, mpfit (and all curvefitting routines) can handle only 1
> dependent variable and any number if independent variables.

Again, not true, see above.

However, your original request was entirely different. You wanted to
fit a "quartic" curve through some "points in 3D space." Again, a
quartic function of what? Define your problem first, please.

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 13:19:32 PDT 2025

Total time taken to generate the page: 0.55911 seconds