forum.alglib.net
http://forum.alglib.net/

Fitting non linear surface
http://forum.alglib.net/viewtopic.php?f=2&t=854
Page 1 of 1

Author:  tsgarcia33 [ Fri May 24, 2013 1:37 pm ]
Post subject:  Fitting non linear surface

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

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/