31 #ifndef GUM_GIBBS_OPERATOR_H 32 #define GUM_GIBBS_OPERATOR_H 49 template <
typename GUM_SCALAR >
58 bool atRandom =
false);
101 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS bool isDrawnAtRandom() const
GibbsOperator(const IBayesNet< GUM_SCALAR > &BN, const NodeProperty< Idx > *hardEv, Size nbr=1, bool atRandom=false)
constructor
Size nbrDrawnVar() const
Getters and setters.
Sequence< NodeId > _samplingNodes
void __drawVarMonteCarlo(NodeId nod, Instantiation *I)
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Class representing the minimal interface for Bayesian Network.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
The class for generic Hash Tables.
const IBayesNet< GUM_SCALAR > & _sampling_bn
void setDrawnAtRandom(bool atRandom)
Size _counting
number of samples drawn
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Instantiation nextSample(Instantiation prev)
draws next sample of Gibbs sampling
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void __GibbsSample(NodeId id, Instantiation *I)
change in Instantiation I a new drawn value for id
virtual ~GibbsOperator()
Destructor.
const NodeProperty< Idx > * _hardEv
Class for assigning/browsing values to tuples of discrete variables.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Instantiation monteCarloSample()
draws a Monte Carlo sample
void __updateSamplingNodes()
std::size_t Size
In aGrUM, hashed values are unsigned long int.
void setNbrDrawnVar(Size nbr)
Size NodeId
Type for node ids.
class containing all variables and methods required for Gibbssampling