ALGLIB forum
It is currently Fri Sep 29, 2023 11:25 am

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 

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

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#):
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

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 1 guest

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