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