-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.hpp
40 lines (29 loc) · 881 Bytes
/
main.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef __MAIN_HPP__
#define __MAIN_HPP__
#include <fstream>
#include <map>
#include <string>
#include <vector>
#include <utility>
namespace aixi {
// Streams for logging (defined in main.cpp)
extern std::ofstream log;
}
extern std::ofstream compactLog;
// symbols that can be predicted
typedef bool symbol_t;
// a list of symbols
typedef std::vector<symbol_t> symbol_list_t;
// describe the reward accumulated by an agent
typedef double reward_t;
// describe a percept (observation or reward)
typedef unsigned int percept_t;
// percept (observation,reward) pair
typedef std::pair<percept_t, percept_t> obsrew_t;
// describe the lifetime of an agent
typedef unsigned long long lifetime_t;
// describes an agent action
typedef unsigned int action_t;
// the program's keyword/value option pairs
typedef std::map<std::string, std::string> options_t;
#endif // __MAIN_HPP__