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

Home » Public Forums » archive » Re: MPFIT2DPEAK with constraints
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: MPFIT2DPEAK with constraints [message #36640 is a reply to message #36636] Thu, 09 October 2003 20:00 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
c.carrano@att.net (Charles Carrano) writes:
> Greetings. I'm trying to understand how Craig
> Markwardt's peak fitting function MPFIT2DPEAK
> works when you wish to require that certain
> parameters be held constant.
>
> Specifically, I know that my data should peak
> at the origin and so I'd like to force the
> fitted Gaussian to peak there as well.
>
> Despite specifying that A[4] and A[5] be
> fixed using the PARINFO structure, the fitted
> Gaussian is not centered at the origin.
> Supplying PARINFO to MPFIT2DPEAK does change
> the fit but it actually makes it slighly worse.
> Anyone know what I might be doing wrong?

Greetings--

> zfit = mpfit2dpeak(z, a1, x, y, /tilt, PARINFO=pi)

The documented way to enter the initial parameters to MPFIT2DPEAK is
using the ESTIMATES keyword.

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
Previous Topic: Re: Controling sensetivity on widget_button
Next Topic: Re: netCDf problem in IDl 6.0

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

Current Time: Mon Oct 20 21:57:37 PDT 2025

Total time taken to generate the page: 1.59880 seconds