11-23-2012 04:23 AM
Hi
I am using the Gaussian Peak Fit Vi and I want to calculate the FWHM of the fitted curve. What is the best way to do this. Thanks
11-26-2012 09:58 AM
Hi Zepp
I'm not too familiar with the Gaussian function, however after some quick research I've seen that the:
FWHM = 2 * (sqrt (2*ln 2)) * C
Where I believe C is the centre.
To build this you can either use a math script node or build it using the correct function blocks. I've attached a VI and VI snippet that uses both of these methods. I haven’t wired up the inputs of the Gaussian Function as I am quite unfamiliar with it.
Let me know if this is what you were looking for.
Many thanks.
Dan
04-05-2016 08:13 AM - edited 04-05-2016 08:14 AM
C here is the standard deviation
04-05-2016 09:15 AM
Almost correct: C is not the center, it is standard deviation.
PS. for single variable, single line formulas it is better to use expression node.
04-05-2016 09:20 AM
If you search for FWHM Gaussian, you can find that the Full Width at Half Maximum (which "answer analysis" should tell you will be related to the Standard Deviation, usually expressed as a lower-case sigma, σ, is
Bob Schor
04-05-2016 09:43 AM
Hi Alexander,
I appreciate the feedback. Silly mistake on my part. Kind of makes me want to go back and check a few of my older forum posts and see if I'm any wiser now or just older haha.
Thanks,
Daniel
Daniel Harryman
Certified LabVIEW Devloper
Electronics Engineer
ISIS Neutron & Muon Source
Accelerator Diagnostics Development
Science & Technology Facilities Council
Rutherford Appleton Laboratory