29 #ifndef __VAR_MOD_2_BNS_MAP__H__ 30 #define __VAR_MOD_2_BNS_MAP__H__ 36 #include <agrum/tools/core/hashTable.h> 37 #include <agrum/tools/core/math/pow.h> 39 #include <agrum/CN/credalNet.h> 54 template <
typename GUM_SCALAR >
124 bool insert(
const std::vector<
bool >& bn,
const std::vector< Size >& key);
133 bool insert(
const std::vector< Size >& key,
const bool isBetter);
145 void setCNet(
const CredalNet< GUM_SCALAR >& cn);
194 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 201 #include <agrum/CN/tools/varMod2BNsMap_tpl.h> hashVars myHashVars_
Map id - list(varKey) : get all variables, modalities associated to this optimal net id...
dBN currentSample_
The current sampled IBayesNet.
~VarMod2BNsMap()
Destructor.
Size currentHash_
The current sampled IBayesNet hash.
INLINE void emplace(Args &&... args)
varHashs myVarHashs_
Map varKey - list(id) : get all optimal nets id from the given key : variable, modality and min=0 ( o...
const CredalNet< GUM_SCALAR > * cnet
A pointer to the CredalNet to be used.
hashNet myHashNet_
Map id - dBN : get a net from it's id.
std::vector< std::vector< std::vector< std::vector< bool > > > > getFullBNOptsFromKey(const std::vector< Size > &key)
Get optimum IBayesNet (s) with structure of the given variable, modality for min or max...
const std::vector< dBN *> getBNOptsFromKey(const std::vector< Size > &key)
Get optimum IBayesNet (s) without structure of the given variable, modality for min or max...
Size getEntrySize() const
Get the number of IBayesNet stored.
void setCNet(const CredalNet< GUM_SCALAR > &cn)
Initialize sampleDef from the CredalNet.
const dBN & getCurrentSample()
Get the current sample as a vector of bits without structure.
VarMod2BNsMap()
Default constructor that should be used only by InferenceEngine since it has a member variable...
VarMod2BNsMap(const CredalNet< GUM_SCALAR > &cn)
Thread constructor.
bool insert(const std::vector< bool > &bn, const std::vector< Size > &key)
Insert for thread fusion.
bool insert(const std::vector< Size > &key, const bool isBetter)
Thread insert.
namespace for all credal networks entities
void setCurrentSample(const std::vector< std::vector< std::vector< bool > > > &sample)
Set the current thread sample and it's hash.