forum.alglib.net http://forum.alglib.net/ |
|
multi independent variables nonlinear curve fit http://forum.alglib.net/viewtopic.php?f=2&t=729 |
Page 1 of 1 |
Author: | bv56 [ Tue Nov 20, 2012 5:06 pm ] |
Post subject: | multi independent variables nonlinear curve fit |
Hi: I am trying to fit a non linear equation in two independent variables X1 and X2. The equation looks like Y = c0 + c1*exp(-c2*X1^2) + c3*exp(-c4*X2^2) How do I input this function to "lsfitfit" ? The "lsfitcreatef" accepts a real_2d_array for X but the lsfitfit doesn't seem to accept the real_2d_array for user defined function void lsfitfit(lsfitstate &state, void (*func)(const real_1d_array &c, const real_1d_array &x, double &func, void *ptr),.... Thanks for your help. Regards, Balaji |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |