39 template <
typename GUM_SCALAR >
44 template <
typename GUM_SCALAR >
50 template <
typename GUM_SCALAR >
56 template <
typename GUM_SCALAR >
64 template <
typename GUM_SCALAR >
69 template <
typename GUM_SCALAR >
73 res += f.second->domainSize();
78 template <
typename GUM_SCALAR >
91 template <
typename GUM_SCALAR >
104 template <
typename GUM_SCALAR >
117 template <
typename GUM_SCALAR >
131 template <
typename GUM_SCALAR >
144 template <
typename GUM_SCALAR >
150 param +=
factor.second->content()->realSize();
156 s <<
"domainSize: 10^" << dSize;
158 s <<
"domainSize: " << std::round(std::pow(10.0, dSize));
160 s <<
", dim: " << param <<
"}";
165 template <
typename GUM_SCALAR >
167 return "Not Implemented Yet";
207 template <
typename GUM_SCALAR >
209 return "Not Implemented Yet";
253 template <
typename GUM_SCALAR >
258 template <
typename GUM_SCALAR >
UGmodel & operator=(const UGmodel &source)
Private copy operator.
GUM_SCALAR minNonZeroParam() const
virtual ~IMarkovNet()
Destructor.
GUM_SCALAR maxNonOneParam() const
void setProperty(const std::string &name, const std::string &value)
Add or change a property of this GraphicalModel.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
Virtual base class for PGMs using a undirected graph.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
double log10DomainSize() const
std::ostream & operator<<(std::ostream &output, const BayesNet< GUM_SCALAR > &bn)
Prints map's DAG in output using the Graphviz-dot format.
virtual std::string toDot() const
virtual const FactorTable< GUM_SCALAR > & factors() const =0
Returns the set of factors as a IMarkovNet::FactorTable.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
IMarkovNet()
Default constructor.
IMarkovNet< GUM_SCALAR > & operator=(const IMarkovNet< GUM_SCALAR > &source)
Copy operator.
bool operator!=(const IMarkovNet< GUM_SCALAR > &from) const
GUM_SCALAR minParam() const
const UndiGraph & graph() const
Returns a constant reference to the dag of this Bayes Net.
Size maxVarDomainSize() const
std::string toString() const
Size dim() const
Returns the dimension (the number of free parameters) in this bayes net.
Class representing the minimal interface for Bayesian Network.
Size sizeEdges() const
indicates the number of edges stored within the EdgeGraphPart
std::size_t Size
In aGrUM, hashed values are unsigned long int.
GUM_SCALAR maxParam() const
virtual Size size() const final
Returns the number of variables in this Directed Graphical Model.
#define GUM_ERROR(type, msg)
virtual const Potential< GUM_SCALAR > & factor(const NodeSet &varIds) const =0
Returns the factor of a set of variable.
bool operator==(const IMarkovNet< GUM_SCALAR > &from) const
This operator compares 2 BNs !