28 #ifndef GUM_IMPORTANCE_INFERENCE_H 29 #define GUM_IMPORTANCE_INFERENCE_H 48 template <
typename GUM_SCALAR >
110 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS ~ImportanceSampling() override
Destructor.
Instantiation _burnIn() override
draws a defined number of samples without updating the estimators
ImportanceSampling(const IBayesNet< GUM_SCALAR > *bn)
Default constructor.
Class representing the minimal interface for Bayesian Network.
gum is the global namespace for all aGrUM entities
Implementation of Importance Sampling for inference in Bayesian Networks.
Instantiation _draw(GUM_SCALAR *w, Instantiation prev) override
draws a sample according to Importance sampling
This file contains general methods for simulation-oriented approximate inference. ...
Portion of a BN identified by the list of nodes and a BayesNet.
Class for assigning/browsing values to tuples of discrete variables.
void _unsharpenBN(BayesNetFragment< GUM_SCALAR > *bn, float epsilon)
modifies the cpts of a BN in order to tend to uniform distributions
double epsilon() const
Returns the value of epsilon.
void _onContextualize(BayesNetFragment< GUM_SCALAR > *bn) override
fired when Bayesian network is contextualized