LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does anyone know how LabView determines standard deviation on their Gaussian Peak Fit VI?

The VI reports standard deviation that is quite high. I am wondering if they go out to 5-sigma or something along those lines.

 

If anyone has had this same issue, please let me know

 

Thanks in advance!

0 Kudos
Message 1 of 7
(4,528 Views)

Did you graph the data and best fit on the same graph? Do they agree?

 

I just played a little bit with it and, in my limited experience, the gaussian fitting VI is often not very good (especially for data with small values). I probably would use levenberg marquardt instead.

 

Can you attach your VI containing some typical data?

0 Kudos
Message 2 of 7
(4,522 Views)

Interesting you mention the robustness of the algorithm. I have heard in the past that it is not very good. In fact, the data you feed into it must be VERY Gaussian otherwise the fit is just garbage. Luckily for me, my data is quite clean, see the attached picture.

 

You also mention Levenberg-Marquardt. Is a VI available somewhere or would I need to write my own?

 

Thanks for your prompt reply!

0 Kudos
Message 3 of 7
(4,514 Views)

What is your LabVIEW version?

Do you give any initial estimates?

 

You can use "nonlinear curve fit", but you need to make a model subVI, which is quite trivial. You also need to provide initial estimates.

0 Kudos
Message 4 of 7
(4,510 Views)

LabVIEW 2010 SP1

 

I have not added initial estimates; working on that right now.

 

Let me just mention that for the sample data I attached (which is very nicely fitted) I get a standard deviation of ~4.5, but by simple examination of the graph, you can see that the profile width is ~1.9. However, I am interested in finding the deviation from the center at approximately 13% of the maximum amplitude (common in my line of work). My problem is that I don't know how LabVIEW decides how far to go out from the center to report the standard deviation. They may go out to 5% or even 1%.

0 Kudos
Message 5 of 7
(4,508 Views)

Make sure your x-value array is scaled correctly.

 

The definition of stddev is not open to interpretation. The formula is given on the help page and seems correct.

0 Kudos
Message 6 of 7
(4,506 Views)
You did no attach any sample data, just an image. Can you attach an actual data file?
0 Kudos
Message 7 of 7
(4,499 Views)