From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Gaussian fit, levenberg-marquardt & more

Labview 8.0

I am looking for a proper gaussian fit. Now I use the levenberg-marquardt algorithm to fit "a0*exp(-((x-a1)/a2)^2/2)+a3", but it is really slow. The Labview Gaussian Peak Fit is really fast but the "a3" offset is missing. I need this because we have a lot of background radiation, how can I solve this?

Thx for help,

    Bessymember
0 Kudos
Message 1 of 4
(2,665 Views)
This should be really fast using the VI model (It seems you are using the formula string model).
 
Attach some typical data and I give it a try.
0 Kudos
Message 2 of 4
(2,663 Views)
Also have a look at the shipping example "Fit sum of 3 gaussians with offset.vi". Start from there and simplfy it. 😄
Message 3 of 4
(2,657 Views)
thanks, also thought about that. i will give it a try.


0 Kudos
Message 4 of 4
(2,652 Views)