MCPcopy Create free account
hub / github.com/FidoProject/Fido / History

Class History

include/FidoControlSystem.h:42–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected