aGrUM  0.16.0
statisticalLazyDecider.h
Go to the documentation of this file.
1 
31 // =========================================================================
32 #ifndef GUM_STATISTICAL_LAZY_DECIDER_H
33 #define GUM_STATISTICAL_LAZY_DECIDER_H
34 // =========================================================================
37 // =========================================================================
38 
39 namespace gum {
40 
54  // ###################################################################
56  // ###################################################################
58  public:
59  // ==========================================================================
61  // ==========================================================================
63  GUM_CONSTRUCTOR(StatisticalLazyDecider);
64  }
65 
66  // ==========================================================================
68  // ==========================================================================
70 
72 
73 
74  // ###################################################################
76  // ###################################################################
78  public:
79  void checkState(const Instantiation& newState, Idx actionId = 0) {
80  if (!__initialized) {
81  __counter.reset(newState);
82  __initialized = true;
83  } else
84  __counter.incState(newState);
85  }
86 
87  private:
90  };
91 } // namespace gum
92 #endif // GUM_STATISTICAL_LAZY_DECIDER_H
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
<agrum/FMDP/SDyna/IDecisionStrategy.h>
<agrum/FMDP/simulation/statesCounter.h>
Definition: statesCounter.h:51
void checkState(const Instantiation &newState, Idx actionId=0)
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
<agrum/FMDP/decision/statisticalLazyDecider.h>
void reset(const Instantiation &)
Class for assigning/browsing values to tuples of discrete variables.
Definition: instantiation.h:83
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void incState(const Instantiation &)
Size Idx
Type for indexes.
Definition: types.h:53