LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to fit a curve with restrictions

I am trying to fit my experimental data with my own function y=a*exp(-x/b)+(1-a)*exp(-x/c) and I want the "a" paremeter to be >0 when doing the fitting.

Is there anyway to do so?

Thanks!

0 Kudos
Message 1 of 5
(2,754 Views)
Assuming you have a recent LabVIEW version, try the Constrained Nonlinear Curve Fit VI. Good luck!
Message Edited by altenbach on 04-03-2009 05:43 PM
0 Kudos
Message 2 of 5
(2,746 Views)
what if I use 7.0 vision? Is there any way to realize Constrained Nonlinear Curve Fit use Labview 7.0?
0 Kudos
Message 3 of 5
(2,712 Views)

sleepyqueen wrote:
what if I use 7.0 vision? Is there any way to realize Constrained Nonlinear Curve Fit use Labview 7.0?

 

 Yes, but you have to do it all yourself from scratch. 😞

0 Kudos
Message 4 of 5
(2,701 Views)

Try fitting to (a^2)*exp(...) + (1-a^2)*exp(...)

a^2 is always positive, so the constraint is now implicit in the model.

 

-Jim

0 Kudos
Message 5 of 5
(2,686 Views)