AIToolbox
A library that offers tools for AI problem solving.
|
Go to the documentation of this file. 1 #ifndef AI_TOOLBOX_POLICYINTERFACE_HEADER_FILE
2 #define AI_TOOLBOX_POLICYINTERFACE_HEADER_FILE
30 template <
typename State,
typename Sampling,
typename Action>
87 template <
typename State,
typename Sampling,
typename Action>
89 S(std::move(s)), A(std::move(a)), rand_(
Seeder::getSeed()) {}
91 template <
typename State,
typename Sampling,
typename Action>
94 template <
typename State,
typename Sampling,
typename Action>
97 template <
typename State,
typename Sampling,
typename Action>
109 template <
typename Action>
129 virtual Action sampleAction()
const = 0;
138 virtual double getActionProbability(
const Action & a)
const = 0;
145 const Action & getA()
const;
154 template <
typename Action>
156 A(std::move(a)), rand_(
Seeder::getSeed()) {}
158 template <
typename Action>
161 template <
typename Action>