23 #ifndef SRC_APPLICATION_NARMEDBANDITSUNLIMITEDHISTORY_HPP_
24 #define SRC_APPLICATION_NARMEDBANDITSUNLIMITEDHISTORY_HPP_
28 #include <types/MatrixTypes.hpp>
30 #include <opengl/application/OpenGLApplication.hpp>
31 #include <opengl/visualization/WindowCollectorChart.hpp>
32 using namespace mic::opengl::visualization;
35 namespace application {
58 virtual void initializePropertyDependentVariables();
65 virtual void initialize(
int argc,
char* argv[]);
70 virtual bool performSingleStep();
90 mic::configuration::Property<double>
epsilon;
109 short calculateReward(
float prob_);
114 size_t selectBestArm();
WindowCollectorChart< float > * w_reward
Window for displaying average reward.
mic::configuration::Property< size_t > number_of_bandits
Property: number of bandits.
mic::configuration::Property< double > epsilon
Property: variable denoting epsilon in action selection (the probability "below" which a random actio...
Class implementing a n-Armed Bandits problem solving the n armed bandits problem based on unlimited h...
std::vector< std::pair< size_t, size_t > > action_values
Action values - pairs of <arm_number, reward>.
mic::configuration::Property< std::string > statistics_filename
Property: name of the file to which the statistics will be exported.
mic::types::VectorXf arms
n Bandit arms.
mic::utils::DataCollectorPtr< std::string, float > reward_collector_ptr
Reward collector.