Hello
I need to to make a curve fitting for measured data from A/D of micro in C. The function of curve is nonlinear and can not be lineared . so I need to use Levmar algorithm to find best fit. I test many source that have been written for pc and match them to micro but were not work and didn't find unknown parameters.
Is there somebody who implemented levmar curve fitting in micro controller work properly?
What kind of function are you trying to fit to the measured data? Did you choose reasonable initial parameter values? Did you monitor the fitting progress?
What kind of function are you trying to fit to the measured data? Did you choose reasonable initial parameter values? Did you monitor the fitting progress?
yes I choose initial parameters close to known values(in test program). of course in levmar algorithm even initial parameter be far from, the result are close to best fit.
If you start with non-zero initial parameters, the iterative process won't arrive at all zero in one step. By watching the parameters and error square sum, you get an idea what goes wrong.
To know reasonable parameters, you can perform the fit with a spread sheet calculator, e.g. the Excel solver.
If you start with non-zero initial parameters, the iterative process won't arrive at all zero in one step. By watching the parameters and error square sum, you get an idea what goes wrong.
To know reasonable parameters, you can perform the fit with a spread sheet calculator, e.g. the Excel solver.