HOG2
Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Entropy< State, Action > Class Template Reference

#include <PuzzleEntropy.h>

Collaboration diagram for Entropy< State, Action >:
Collaboration graph
[legend]

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< EntropyInfoentropyInfoCache
 
vectorCache< double > doubleCache
 
bool isRelative = false
 

Static Protected Attributes

static constexpr double inf = std::numeric_limits<double>::max()
 

Detailed Description

template<class State, class Action>
class Entropy< State, Action >

Definition at line 24 of file PuzzleEntropy.h.

Member Function Documentation

◆ Calculate()

template<class State , class Action >
virtual EntropyInfo Entropy< State, Action >::Calculate ( const SearchEnvironment< State, Action > &  env,
State &  state,
unsigned  lookahead 
)
inlinevirtual

◆ ImmediateEntropy()

template<class State , class Action >
double Entropy< State, Action >::ImmediateEntropy ( const std::vector< Action > &  actions,
const std::vector< double > &  childEntropy 
)
inlineprotected

◆ KlDivergence()

template<class State , class Action >
static double Entropy< State, Action >::KlDivergence ( const std::vector< double > &  p,
const std::vector< double > &  q 
)
inlinestaticprotected

Definition at line 44 of file PuzzleEntropy.h.

Referenced by Entropy< State, Action >::ImmediateEntropy().

◆ SetRelative()

template<class State , class Action >
auto& Entropy< State, Action >::SetRelative ( bool  val)
inline

Definition at line 77 of file PuzzleEntropy.h.

◆ Softmin()

template<class State , class Action >
static void Entropy< State, Action >::Softmin ( const std::vector< double > &  vars,
std::vector< double > &  ret 
)
inlinestaticprotected

Definition at line 33 of file PuzzleEntropy.h.

Referenced by Entropy< State, Action >::ImmediateEntropy().

Member Data Documentation

◆ actCache

template<class State , class Action >
vectorCache<Action> Entropy< State, Action >::actCache
protected

Definition at line 28 of file PuzzleEntropy.h.

Referenced by Entropy< State, Action >::Calculate().

◆ doubleCache

template<class State , class Action >
vectorCache<double> Entropy< State, Action >::doubleCache
protected

Definition at line 30 of file PuzzleEntropy.h.

Referenced by Entropy< State, Action >::ImmediateEntropy().

◆ entropyInfoCache

template<class State , class Action >
vectorCache<EntropyInfo> Entropy< State, Action >::entropyInfoCache
protected

Definition at line 29 of file PuzzleEntropy.h.

Referenced by Entropy< State, Action >::Calculate().

◆ inf

template<class State , class Action >
constexpr double Entropy< State, Action >::inf = std::numeric_limits<double>::max()
staticconstexprprotected

Definition at line 27 of file PuzzleEntropy.h.

Referenced by Entropy< State, Action >::Calculate().

◆ isRelative

template<class State , class Action >
bool Entropy< State, Action >::isRelative = false
protected

Definition at line 31 of file PuzzleEntropy.h.

Referenced by Entropy< State, Action >::ImmediateEntropy().

◆ ruleSet

template<class State , class Action >
PuzzleInferenceRuleSet<State, Action> Entropy< State, Action >::ruleSet

Definition at line 75 of file PuzzleEntropy.h.

Referenced by Entropy< State, Action >::Calculate().


The documentation for this class was generated from the following file: