08-26-2008 02:23 PM
08-26-2008 02:42 PM
What is your LabVIEW version?
Newer LabVIEW versions include the "Constrained nonlinerar curve fit" that lets you set bounds on paramters.
08-26-2008 02:49 PM - edited 08-26-2008 02:49 PM
Rito wrote:
The parameters go on changing indefinitely and it tends to produce totally irrelevant fits to the input data.
You should also ensure that you use reasonable paramter estimates. Calculate the function for the estimates and graph it with your data. How close are you? does the calculated function reproduce all major features of the data?
Of course it can also mean that your model is over-paramterized or otherwise unsuitable in its current form.
Basically, if your model is incorrect, it might just stick at the parameter boundaries and you won't learn anything new by fitting. You should also inspect the covariance matrix to see which paramters have problems.
Can you tell us a bit more about the model you are trying to fit and how the data looks like.
08-26-2008 03:50 PM
08-26-2008 04:02 PM
Rito wrote:
But now when I am trying to fit with actual data where the data is well far off the initial guess, the results which I am getting after the fit give even worse fits than the initial guess and the error increases indefinitely.
You need to ensure that your initial guesses are reasonable. If things are far off, it may not work.
Attach your model and some data and I'll have a look.