forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 11:41 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: Fitting non linear surface
PostPosted: Fri May 24, 2013 1:37 pm 
Offline

Joined: Fri May 24, 2013 1:25 pm
Posts: 1
Hi,

This is my first post. Hello to everybody :-)

I'm testing alglib in order to fit some points to a non linear surface. I guess alglib allow multi-dimensional problems.
Based on examples, I've tried to us lsfitfit without success.

I've defined (c#):
Code:
public static void myFunction(double[] c, double[,] x, ref double func, object obj )
{
   func = c[0]+c[1]*x[0,0]+c[2]*x[0,0]*x[0,0]+c[3]*x[0,1]+c[4]*x[0,1]*x[0,0]+c[5]*x[0,1]*x[0,1];
}

It sucess when calling lsfitcreatef with multidimensional x, but gives an error when calling lsfitfit due to double[,] parameter (I've tried also [][] without success)
Am I missing anything?

Thanks in advance


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 45 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group