Hi All,
Kindly assist and thank you in advance.
I am trying to you the GeneralLinearLeastSquares class in the QuantLib (signature below) but I get this error:
c:\program files (x86)\microsoft visual studio 10.0\vc\include\algorithm(1043): error C2064: term does not evaluate to a function taking 1 arguments
I suspect it is the parameters that I am passing and/or how I am passing them. See the defition here:
http://quantlib.org/reference/class_quant_lib_1_1_general_linear_least_squares.html
// begin my code
#include "stdafx.h"
#include "boost\lambda\lambda.hpp"
#include <ql\math\generallinearleastsquares.hpp>
#include <vector>
#include <list>
using namespace std;
using namespace QuantLib;
int _tmain(int argc, _TCHAR* argv[])
{
int xCord [] = {10, 20, 30 };
int yCord [] = {10, 20, 30 };
int zCord [] = {10, 20, 30 };
//vector<int> * x, * y, *z;
const vector <int> xVec(xCord,xCord+3);
const vector <int> yVec(yCord,yCord+3);
const vector <int> zVec(zCord,zCord+3);
GeneralLinearLeastSquares t = GeneralLinearLeastSquares(xVec,yVec,zVec);
//t.coefficients();
return 0;
}
//End of my code
GeneralLinearLeastSquares defition)
template<class xContainer , class yContainer , class vContainer >
QuantLib::GeneralLinearLeastSquares::GeneralLinearLeastSquares ( const xContainer & x,
const yContainer & y,
const vContainer & v
) [inline]