| Thank you Sergey. I tried 1 d spline, but do not know how do I solve the 2 and 3 d. It is because I am totally new in interpolation, I understand that spline interpolation is to find an unknown value between x & y, but really do not know how to solve it in computer. Please help me in the below code:public void spline2d_cubicExample()
 {
 double[] x = new double[] { 1980, 1990, 2000, 2010, 2020 };
 double[] y = new double[] { 50, 100, 175, 200, 240 };
 double[,] f; //what to do with this field? I am simply trying to pass it to the function below,
 //but do not know the purpose
 double findAtThisValue = 2012;
 double interpolatedValue;
 
 //instantiate the spline2d interpolant
 alglib.spline2dinterpolant spline;
 
 //build 2 dim cubic spline interpolant
 alglib.spline2d.spline2dbuildbicubic(x, y, ref f, x.Length, y.Length, spline);
 //getting compile error
 }
 //I am stuck here, if I know what is in the third parameter i.e., f then propably I could solve.
 
 Please help me.
 Thank you
 Arun
 
 
 |