1 #ifndef GRAIL_C45_GAME_ACTION_COUNTER_H
2 #define GRAIL_C45_GAME_ACTION_COUNTER_H
4 #include "../ISimulatedGameAction.hh"
5 #include <unordered_map>
18 double getTotalSampleCount()
const;
20 size_t geKeyCount()
const;
26 double calculateEntropy()
const;
31 std::unordered_map<const ISimulatedGameAction*, int, HashForOfflineLearning, EqualsForOfflineLearning> sampleCountByKey;
32 double totalSamples = 0;
The whole class should be INTERNAL; part of the private interface.
Definition: C45GameActionCounter.h:14
Base class for all actions in SimulatedGame. Derive from it for your actions.
Definition: ISimulatedGameAction.hh:41