HOG2
|
#include <PuzzleEntropy.h>
Public Member Functions | |
auto & | SetRelative (bool val) |
virtual EntropyInfo | Calculate (const SearchEnvironment< State, Action > &env, State &state, unsigned lookahead) |
Public Attributes | |
PuzzleInferenceRuleSet< State, Action > | ruleSet |
Protected Member Functions | |
double | ImmediateEntropy (const std::vector< Action > &actions, const std::vector< double > &childEntropy) |
Static Protected Member Functions | |
static void | Softmin (const std::vector< double > &vars, std::vector< double > &ret) |
static double | KlDivergence (const std::vector< double > &p, const std::vector< double > &q) |
Protected Attributes | |
vectorCache< Action > | actCache |
vectorCache< EntropyInfo > | entropyInfoCache |
vectorCache< double > | doubleCache |
bool | isRelative = false |
Static Protected Attributes | |
static constexpr double | inf = std::numeric_limits<double>::max() |
Definition at line 24 of file PuzzleEntropy.h.
|
inlinevirtual |
Definition at line 83 of file PuzzleEntropy.h.
References Entropy< State, Action >::actCache, SearchEnvironment< state, action >::ApplyAction(), EntropyInfo::depth, Entropy< State, Action >::entropyInfoCache, SearchEnvironment< state, action >::GetActions(), vectorCache< storage >::getItem(), SearchEnvironment< state, action >::GoalTest(), Entropy< State, Action >::ImmediateEntropy(), Entropy< State, Action >::inf, vectorCache< storage >::returnItem(), Entropy< State, Action >::ruleSet, SearchEnvironment< state, action >::UndoAction(), and EntropyInfo::value.
|
inlineprotected |
Definition at line 57 of file PuzzleEntropy.h.
References Entropy< State, Action >::doubleCache, vectorCache< storage >::getItem(), Entropy< State, Action >::isRelative, Entropy< State, Action >::KlDivergence(), vectorCache< storage >::returnItem(), and Entropy< State, Action >::Softmin().
Referenced by Entropy< State, Action >::Calculate().
|
inlinestaticprotected |
Definition at line 44 of file PuzzleEntropy.h.
Referenced by Entropy< State, Action >::ImmediateEntropy().
|
inline |
Definition at line 77 of file PuzzleEntropy.h.
|
inlinestaticprotected |
Definition at line 33 of file PuzzleEntropy.h.
Referenced by Entropy< State, Action >::ImmediateEntropy().
|
protected |
Definition at line 28 of file PuzzleEntropy.h.
Referenced by Entropy< State, Action >::Calculate().
|
protected |
Definition at line 30 of file PuzzleEntropy.h.
Referenced by Entropy< State, Action >::ImmediateEntropy().
|
protected |
Definition at line 29 of file PuzzleEntropy.h.
Referenced by Entropy< State, Action >::Calculate().
|
staticconstexprprotected |
Definition at line 27 of file PuzzleEntropy.h.
Referenced by Entropy< State, Action >::Calculate().
|
protected |
Definition at line 31 of file PuzzleEntropy.h.
Referenced by Entropy< State, Action >::ImmediateEntropy().
PuzzleInferenceRuleSet<State, Action> Entropy< State, Action >::ruleSet |
Definition at line 75 of file PuzzleEntropy.h.
Referenced by Entropy< State, Action >::Calculate().