I am very new to ALGLIB so I will need some help in starting off, I've added interpolation.h to my project and what I want to do is to interpolate two values from two arrays and get a result
I have been looking through the demos of the old builds and replaced ap:: syntax with alglib::
At the moment I am getting 9 compiler errors like
Code:
>TestModel.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall alglib::real_1d_array::~real_1d_array(void)" (??1real_1d_array@alglib@@UAE@XZ) referenced in function "void __cdecl splinalInterpolation(int,char * *)" (?splinalInterpolation@@YAXHPAPAD@Z)
All the other errors are similar, the editor/compiler I am using is MS Visual C 2008 Express
Here is a snipped of my code as well...
Code:
alglib::real_1d_array x;
alglib::real_1d_array y;
int n;
int i;
alglib::spline1dinterpolant c;
double err;
double maxerr;
//
// Create spline
//
n = 3;
x.setlength(n);
y.setlength(n);
for(i = 0; i <= n-1; i++)
{
x(i) = alglib::pi()*i/(n-1);
y(i) = sin(x(i));
}
alglib::spline1dbuildlinear(x, y, n, c);