AIToolbox
A library that offers tools for AI problem solving.
|
Go to the documentation of this file. 1 #ifndef AI_TOOLBOX_MDP_QL_HEADER_FILE
2 #define AI_TOOLBOX_MDP_QL_HEADER_FILE
31 QL(
const size_t s,
const size_t a,
const double discount = 1.0,
const double alpha = 0.1,
32 const double lambda = 0.1,
const double tolerance = 0.001,
const double epsilon = 0.1) :
33 Parent(s, a, discount, alpha, tolerance, epsilon)
47 if ( l < 0.0 || l > 1.0 )
throw std::invalid_argument(
"Lambda parameter must be in [0,1]");
61 double getTraceDiscount(
const size_t,
const size_t,
const size_t,
const double,
const size_t)
const {
97 const double alpha,
const double lambda,
const double tolerance) :
98 Parent(target, discount, alpha, tolerance)
112 if ( l < 0.0 || l > 1.0 )
throw std::invalid_argument(
"Lambda parameter must be in [0,1]");
126 double getTraceDiscount(
const size_t,
const size_t,
const size_t,
const double)
const {