49#ifndef __CN_MC_SAMPLING__H__
50#define __CN_MC_SAMPLING__H__
79 template <
typename GUM_SCALAR,
class BNInferenceEngine = LazyPropagation< GUM_SCALAR > >
116 inline void _binaryRep_(std::vector< bool >& toFill,
const Idx value)
const;
153#ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
<agrum/CN/CNMonteCarloSampling.h>
void makeInference()
Starts the inference.
virtual ~CNMonteCarloSampling()
Destructor.
void _verticesSampling_(Size this_thread)
Thread samples a IBayesNet from the CredalNet.
CNMonteCarloSampling(const CredalNet< GUM_SCALAR > &credalNet)
Constructor.
void _binaryRep_(std::vector< bool > &toFill, const Idx value) const
Get the binary representation of a given value.
void _threadInference_(Size this_thread)
Thread performs an inference using BNInferenceEngine.
void _insertEvidence_(Size this_thread)
Insert CredalNet evidence into a thread BNInferenceEngine.
void _mcInitApproximationScheme_()
Initialize approximation Scheme.
MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine > _infEs_
To easily acces MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine.
void _mcThreadDataCopy_()
Initialize threads data.
void _threadUpdate_(Size this_thread)
Update thread data after a IBayesNet inference.
virtual void insertEvidenceFile(const std::string &path)
unsigned int notOptDelete;
Class template representing a Credal Network.
virtual void insertEvidenceFile(const std::string &path)
Insert evidence from file.
const CredalNet< GUM_SCALAR > & credalNet() const
MultipleInferenceEngine(const CredalNet< GUM_SCALAR > &credalNet)
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Size Idx
Type for indexes.
Abstract class representing CredalNet inference engines.
namespace for all credal networks entities
gum is the global namespace for all aGrUM entities