AIToolbox
A library that offers tools for AI problem solving.
|
Simple typedef for most of a normal Bandit's policy needs. More...
#include <AIToolbox/Factored/Bandit/Policies/PolicyInterface.hpp>
Public Types | |
using | Base = AIToolbox::PolicyInterface< void, void, Action > |
Additional Inherited Members | |
Public Member Functions inherited from AIToolbox::PolicyInterface< void, void, Action > | |
PolicyInterface (Action a) | |
Basic constructor. More... | |
virtual | ~PolicyInterface () |
Basic virtual destructor. More... | |
virtual Action | sampleAction () const =0 |
This function chooses a random action, following the policy distribution. More... | |
virtual double | getActionProbability (const Action &a) const =0 |
This function returns the probability of taking the specified action. More... | |
const Action & | getA () const |
This function returns the number of available actions to the agent. More... | |
Protected Attributes inherited from AIToolbox::PolicyInterface< void, void, Action > | |
Action | A |
RandomEngine | rand_ |
Simple typedef for most of a normal Bandit's policy needs.
using AIToolbox::Factored::Bandit::PolicyInterface::Base = AIToolbox::PolicyInterface<void, void, Action> |