
#1
Feb513, 01:49 PM

P: 153

HI guys. Haven't been here in a while...
I have an algorithm attached that uses the levenberg marquardt non linear curve fitting alogrithm to fit a surface. My C coding skills are reasonable, however I am struggling to adjust the model so that I can fit my curve to it. I want to use this algorithm as its a nice standalone algorithm as opposed to some of these otherones that come as part of much larger packages. I have a simple dataset: double tx[5] = {1, 2, 3, 4, 5}; double tz[5] = {1.2, 2.693, 4.325, 6.131, 8.125}; that I am trying to fit to the following function:
I have attached the code, there is one file called myalgorithm.c which I have been working on to get mine to work, and then there is surface1.c which is the example. Obviously only bring one into a project at a time as they both have a main in. Thanks 


Register to reply 
Related Discussions  
LevenbergMarquardt Algorithm with Several Functions  General Math  10  
Levenberg Marquardt Algorithm  General Math  0  
Fit with least squares, Levenberg–Marquardt algorithm  Calculus  2  
[Data regression] LevenbergMarquardt BUT force to intersect 2 KNWON points  General Math  1  
example of LevenbergMarquardtMethod  Calculus  1 