What data can levenberg marquardt fit


rshoge1
07-02-2007, 03:42 PM
I got the mrqmin algorithm to run but it cant seem to find parameters to fit my data. Alamda continues to go to infinity no matter what values I initially start it at. Has anyone had this problem b4? My equation has some power terms, wondering if that might be the problem.

for (i=0;i<=na/2;i++) {
arg1=pow(x,a[i]-1.0);
arg2=pow(x,((-a[i])/2-1));
arg3=pow(x,a[i]-2.0);
arg4=pow(x,((-a[i])/2-2));
ex=(2*a[i+6]);
y += ex*(arg1-arg2);