/**
* GQ(lambda): off-policy learning algorithm
* @author Adam White, converted to C++ by Rupam Mahmood and Rich Sutton
*/
class GQlambda
{
double *theta; //learning weights
double *w; //learning weights
double *e; //elegibility trace vector
int n; //dimensionality of the vectors
public:
GQlambda(int nn) {
n = nn;
theta = new double[n];
w = new double[n];
e = new double[n];
for (int i=0; i