AIToolbox
A library that offers tools for AI problem solving.
SingleActionPolicy.hpp
Go to the documentation of this file.
1 #ifndef AI_TOOLBOX_FACTORED_BANDIT_SINGLE_ACTION_POLICY_HEADER_FILE
2 #define AI_TOOLBOX_FACTORED_BANDIT_SINGLE_ACTION_POLICY_HEADER_FILE
3 
5 
19  public:
26 
32  virtual Action sampleAction() const override;
33 
41  virtual double getActionProbability(const Action & a) const override;
42 
48  void updateAction(Action a);
49 
50  private:
51  // The only action returned by this policy.
52  Action currentAction_;
53  };
54 }
55 
56 #endif
AIToolbox::Factored::Bandit::SingleActionPolicy::updateAction
void updateAction(Action a)
This function updates the currently hold action.
AIToolbox::Factored::Bandit::SingleActionPolicy::getActionProbability
virtual double getActionProbability(const Action &a) const override
This function returns the probability of taking the specified action in the specified state.
PolicyInterface.hpp
AIToolbox::Factored::Bandit::SingleActionPolicy
This class represents a policy always picking the same action.
Definition: SingleActionPolicy.hpp:18
AIToolbox::Factored::Action
Factors Action
Definition: Types.hpp:69
AIToolbox::Factored::Bandit::PolicyInterface
Simple typedef for most of a normal Bandit's policy needs.
Definition: PolicyInterface.hpp:11
AIToolbox::Factored::Bandit::SingleActionPolicy::SingleActionPolicy
SingleActionPolicy(Action a)
Basic constructor.
AIToolbox::Factored::Bandit::SingleActionPolicy::sampleAction
virtual Action sampleAction() const override
This function always return the current action.
AIToolbox::Factored::Bandit
Definition: GraphUtils.hpp:12