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

Home » Public Forums » archive » Question about tutorial in 1D Gaussian Filter
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: Question about tutorial in 1D Gaussian Filter [message #26057 is a reply to message #25929] Tue, 31 July 2001 08:08 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
coraluk@hkpc.org (Cora) writes:
>> FUNCTION SIMPLEGAUSS, X, P
>> return, P(2)*EXP(-(X-P(0))^2/(2.*P(1)^2))
>> END

Hi Cora--

Here are the parameters P to SIMPLEGAUSS. Unlike GAUSS1, the final
parameter is simply the maximum value, not the area under the curve.
It's "simple" after all.

P(0) - position of centroid
P(1) - gaussian sigma
P(2) - maximum amplitude (not area of curve)

To use it, check out the tutorial, and try something like this:

p = mpfitfun('SIMPLEGAUSS', x, y, err, p0)
bestfit = simplegauss(x, p)

Much of this information is in the "frequently asked questions" for
the web page. Or, you can download MPFITPEAK, which is a function
specifically designed for fitting gaussian and other type peaks to
data. It automatically returns the best fit curve.

Craig

http://cow.physics.wisc.edu/~craigm/idl/

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: plotting free form ascii data
Next Topic: New slackware 8.0 libraries, old executables?

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

Current Time: Mon Dec 01 02:47:58 PST 2025

Total time taken to generate the page: 1.84376 seconds