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

Home » Public Forums » archive » Parameters and MPFIT
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: Parameters and MPFIT [message #46741 is a reply to message #46658] Fri, 09 December 2005 11:37 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
luxx11@gmail.com writes:


> Hi, I'm using MPFIT and MPFITFUN from Craig Markwardt.
>
> I have one parameter which can be -1 or 1, nothing else, but I'm having
> problems to do this with PARINFO.
>
> Probably there is an easier way to do it but I am setting
> limits=[-1,1], then I set the min and the max step to 2. I thought that
> this would do keep this parameter in -1 or in 1, but I get values like
> 0.8 or 0.9. Any ideas?


I agree with JD's suggestions, as long as your chi-squared space is
not too complicated.

MPFIT optimizes continuous parameters. What you want is a discrete
optimizer, which MPFIT is not. Since you only have one parameter with
two possible values it seems easiest to just do as JD suggests and try
both possible values and see which is best.

Happy fitting,
Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: regarding IDLgrAxis range
Next Topic: Seeking specific graphic filter - Any help?

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

Current Time: Tue Oct 21 08:40:10 PDT 2025

Total time taken to generate the page: 2.72144 seconds