negative shape parameter for Voigt profile gives funky FWHM

199 views
Skip to first unread message

Brian

unread,
Apr 2, 2013, 10:55:12 AM4/2/13
to fityk...@googlegroups.com
Hello,

Currently when using Voigt profiles, fityk will return a negative shape parameter.  This seems to be identical to a positive shape parameter, with regards to the actual shape of the peak.  However, it gives a drastically too small FWHM.  You can easily test this by just creating a Voigt function, and simply flipping the sign of the shape.  The actual shape of the peak doesn't change, but the calculated FWHM does.  This is kind of problematic because even if I manually set the shape to positive, running the fit will often again result in a negative shape.  I also fit a lot of spectra, and often just miss this, and when I go to plot all my data, I get a couple of ridiculous FWHM.

Thanks,
Brian

Dan Parshall

unread,
Apr 2, 2013, 6:24:41 PM4/2/13
to fityk...@googlegroups.com
That's not a bug; it's a feature.

If you want to keep your FWHM positive, use variable substitution to apply constraints.  There's a section in the manual about this, but basically it's something like:

$z=~0.1
$fwhm=$z^2

Now, no matter what value $z takes, the FWHM will be positive.

--
--
http://groups.google.com/group/fityk-users
---
You received this message because you are subscribed to the Google Groups "fityk-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fityk-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Dan Parshall
Shorty George Productions
Boulder, CO
Reply all
Reply to author
Forward
0 new messages