LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

lev mar parameter min value

When I use the Lev Mar curve fit, I get an error that says at least one of my input parameters is NaN or Inf.  There is a place in my fitting equation where I divide by the parameter and take the square root, so if it was either zero or negative, this would not work.

 

Is there a way that I could force Lev Mar to not choose values of 1 or zero for this parameter?  My initial guess is very small (on the order of 10^-4), but this parameter is time, so it should not be negative or zero anyways.

0 Kudos
Message 1 of 2
(1,992 Views)

What is your LabVIEW version? The function has been renamed to "nonlinear curve fit" many versions ago.

 

There is a constrained nonlinear curve fit that lets you set parameter bounds. Use that instead.

 

Can you show us your code and some typical data? If you calculate the model with your paramter guesses, does it look anything like the data?

0 Kudos
Message 2 of 2
(1,985 Views)