28 #ifndef __CN_MC_SAMPLING__H__ 29 #define __CN_MC_SAMPLING__H__ 58 template <
typename GUM_SCALAR,
59 class BNInferenceEngine = LazyPropagation< GUM_SCALAR > >
98 inline void __binaryRep(std::vector< bool >& toFill,
const Idx value)
const;
134 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS void __mcThreadDataCopy()
Initialize threads data.
Abstract class representing CredalNet inference engines.
void __insertEvidence()
Insert CredalNet evidence into a thread BNInferenceEngine.
virtual void insertEvidenceFile(const std::string &path)
Insert evidence from file.
virtual ~CNMonteCarloSampling()
Destructor.
gum is the global namespace for all aGrUM entities
void __threadInference()
Thread performs an inference using BNInferenceEngine.
CNMonteCarloSampling(const CredalNet< GUM_SCALAR > &credalNet)
Constructor.
Class template representing a Credal Network.
void __threadUpdate()
Update thread data after a IBayesNet inference.
void makeInference()
Starts the inference.
void __mcInitApproximationScheme()
Initialize approximation Scheme.
void __verticesSampling()
Thread samples a IBayesNet from the CredalNet.
<agrum/CN/CNMonteCarloSampling.h>
const CredalNet< GUM_SCALAR > & credalNet()
Get this creadal network.
<agrum/BN/inference/lazyPropagation.h>
virtual void insertEvidenceFile(const std::string &path)
unsigned int notOptDelete;
Size Idx
Type for indexes.
Class template representing a CredalNet inference engine using one or more IBayesNet inference engine...
Implementation of a Shafer-Shenoy's-like version of lazy propagation for inference in Bayesian Networ...
void __binaryRep(std::vector< bool > &toFill, const Idx value) const
Get the binary representation of a given value.