62 for (
const auto& name:
names) {
70 if (dSize > 6) s <<
"domainSize: 10^" << dSize;
71 else s <<
"domainSize: " << std::round(std::pow(10.0, dSize));
73 s <<
", dim: " << dim <<
", mem: ";
75 if (
const Size go = usedMem / (1024 * 1024 * 1024); go > 0) s << go <<
"Go ";
76 if (
const Size mo = (usedMem / (1024 * 1024)) % 1024; mo > 0) s << mo <<
"Mo ";
77 if (
const Size ko = (usedMem / 1024) % 1024; ko > 0) s << ko <<
"Ko ";
78 s << usedMem % 1024 <<
"o";
virtual ~GraphicalModel()
Destructor.
static void spaceCplxToStream(std::stringstream &s, double dSize, int dim, Size usedMem)
send to the stream the space complexity with 3 parametrs
GraphicalModel & operator=(const GraphicalModel &source)
Private copy operator.
HashTable< std::string, std::string > _propertiesMap_
The properties of this Directed Graphical Model.
std::vector< std::string > names(const std::vector< NodeId > &ids) const
transform a vector of NodeId in a vector of names
GraphicalModel()
Default constructor.
virtual NodeId idFromName(const std::string &name) const =0
Getter by name.
NodeSet nodeset(const std::vector< std::string > &names) const
transform a vector of names into a NodeSet
void insert(const Key &k)
Inserts a new element into the set.
Class representing probabilistic DAG model.
Interface-like class encapsulating basic functionalities for both a IBayesNet and IMarkovRandomField.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Set< NodeId > NodeSet
Some typdefs and define for shortcuts ...
gum is the global namespace for all aGrUM entities