Watch this Author's files
A couple of errors in the post below:
sqrt(2 log(2)) = 1.177
sqrt(log(2)) = 0.832
This is a great tool.
I have a question about the constant '0.600516' that appears in the function 'gaussian'. In the comment for that function, you write "half-width=wid". If you define your gaussian as:
then the half width = sqrt(2log(2))*sigma = 0.776*sigma. If you define your gaussian as:
then the half width = sqrt(log(2))*sigma = 0.549*sigma.
It appears that you chose the latter definition but with "wid=full width at half max". That way wid = 2*sqrt(log(2))*sigma or alternatively sigma = 0.600516*wid.
In this case, the comment should read "FWHM=wid".