forum.alglib.net

ALGLIB forum
It is currently Thu Mar 28, 2024 4:15 pm

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: multi independent variables nonlinear curve fit
PostPosted: Tue Nov 20, 2012 5:06 pm 
Offline

Joined: Tue Nov 20, 2012 4:31 pm
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 49 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group