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

Home » Public Forums » archive » Re: chi^2 minimisations & calling c
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: chi^2 minimisations & calling c [message #36676] Thu, 16 October 2003 10:50 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
danb@star.herts.ac.uk (Dan B) writes:


>> You must have spilled it wrong! :-)
>>
>
> Indied. Had to scroll down the page, doh.
>
> I am now having real trouble trying to get mpfit to work with spawn in
> the function_name though. When I ddread the model data points back I
> get told:
>
> % CLOSE: Variable is undefined: LUN.
> % Error occurred at: DDREAD 302

Please, take MPFIT out of the situation. First, get your model to
work by calling it alone, without MPFIT. When you are confident that
it works (repeatedly), then try to combine it with the fitter.
*Think* about why LUN could be undefined within DDREAD. Do you really
think it's a problem with the fitting? Probably not. It sounds more
like an I/O problem, so you need to solve that first.


>> function bla
>>
>> spawn program with a b c d e f
>>
>> x =ddread(modeldatapoints)
>> y =ddread(truedatapoints)
>>
>> end

Obviously this can't be correct since MODELDATAPOINTS and
TRUEDATAPOINTS do not exist as variables.

>> pro blabla
>>
>> p =[a,b,c,d,e,f]
>>
>> fit = mpfit(x, y, p, FUNCTION_NAME=bla)

MPFIT does not have a FUNCTION_NAME keyword.

Good luck,
Craig
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problems with 3D-Plot
Next Topic: How to get actual widget size?

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

Current Time: Wed Oct 08 15:11:42 PDT 2025

Total time taken to generate the page: 0.00467 seconds