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

Home » Public Forums » archive » Re: Problem with gaussfit in IDL/v5.5
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Problem with gaussfit in IDL/v5.5 [message #28034] Fri, 16 November 2001 12:41
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
thompson@orpheus.nascom.nasa.gov (William Thompson) writes:

> We found a problem with the procedure gaussfit which is supplied with IDL/v5.5.
> It appears that somebody at RSI tried to improve the algorithm for generating
> the initial guess, but didn't quite complete the job. I've informed RSI, and
> decided to also inform the newsgroup. The simple fix is to change the line
...

Hi Bill--

That's an interesting report. If you are interested in a different
approach to estimating the parameters of peaks, then you might be
interested in MPFITPEAK, which is based on the MPFIT fitting routines.

I was having real problems with noisy data, that didn't work very well
with GAUSSFIT. I found that a better approach is to compute the
*area* above and below the mean, and that gives a much better handle
on the position and width of the peak. It is very robust, even for
very broad and noisy peaks.

However, if this is important to you:
> if nt gt 5 then a = [a, c[2]]

[ indicating you need the quadratic approximation to the background
before you begin fitting] then MPFITPEAK may not be for you. It
doesn't pre-fit the background level, instead assuming it is constant.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Problems with CHISQR_PDF when moving from IDL 5.2 to 5.4
Next Topic: Re: IDL Bug: NCOMPLEMENT keyword to where

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

Current Time: Wed Oct 08 09:13:33 PDT 2025

Total time taken to generate the page: 0.00366 seconds