41 const vector<size_t>& nrActions,
42 const vector<size_t>& nrTypes) :
44 _m_utilFunction(_m_nrJTypes, _m_nrJA,
"type",
"ja")
59 ss <<
"Utility function for jtype "<<jtype <<
61 ss <<
"jtype\tja\tu(jtype,ja)"<<endl;
63 ss << jtype <<
"\t" << jaI <<
"\t" <<
GetUtility(jtype, jaI)<<endl;
71 ss <<
"Utility function:"<<endl;
85 throw(
E(
"Not implemented"));
90 throw(
E(
"Not implemented"));
98 std::vector<size_t> acs,
99 std::vector<size_t> obs
106 double rn = (rand() - (0.5 * RAND_MAX)) / (RAND_MAX / 20.0);
111 vector<double> typeProbs;
115 double r = ((double)rand()) / RAND_MAX;
116 typeProbs.push_back(r);
119 sum += typeProbs[jtype];