| 40 | protected: |
| 41 | |
| 42 | struct History { |
| 43 | State initialState, newState; |
| 44 | Action action; |
| 45 | double reward; |
| 46 | |
| 47 | History(State initialState_, State newState_, Action action_, double reward_) { |
| 48 | initialState = initialState_; |
| 49 | newState = newState_; |
| 50 | action = action_; |
| 51 | reward = reward_; |
| 52 | } |
| 53 | |
| 54 | bool operator==(const History& other) { |
| 55 | return initialState == other.initialState && newState == other.newState && action == other.action && reward == other.reward; |
| 56 | } |
| 57 | }; |
| 58 | |
| 59 | std::vector<History> histories; |
| 60 |
no outgoing calls
no test coverage detected