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

Home » Public Forums » archive » Re: Plane fit
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: Plane fit [message #39189 is a reply to message #39149] Tue, 27 April 2004 14:18 Go to previous message
Steve.Morris is currently offline  Steve.Morris
Messages: 17
Registered: November 2002
Junior Member
Hi!
Thanks both, the function plane_fit is really straightforward and work
excellent!

I have tried to get more confident with the powerfull mpfit package,
but I'm still stuck at the first step :(

Here is what I do (where x,y,z have the following format array[n] and
I have no errors for my data ... gedankexperiment ;) !)

FitParms = MPFIT2DFUN('Plane2DFunction',$
x ,y, z,$
start_params=[0.D,0.D,0.D],$
/WEIGHTS, /Quiet)

where the fitting function is defined as follows

FUNCTION Plane2DFunction, x, y, P
Return, P[0] + P[1]*x + P[2]*y
END

If I use the keyword Quiet, and query(help,FitParms) about FitParms,
idl reply me
FITPARMS DOUBLE = NaN

If I drop the keyword Quiet, I have the following message
MPFIT2DFUN: ERROR: must pass parameters in P or PARINFO
and FitParms is still NaN ...

Where do I wrong? Probably I'm doing something really stupid
Thanks!Cheers,
S.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: spreadable meat
Next Topic: Reading in a string file

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

Current Time: Sun Oct 12 13:04:33 PDT 2025

Total time taken to generate the page: 1.27669 seconds