30 #ifndef GUM_SIMPLE_MARKOV_NET_H 31 #define GUM_SIMPLE_MARKOV_NET_H 43 template <
typename GUM_SCALAR >
63 template <
typename GUM_SCALAR >
200 virtual std::string
toDot()
const;
207 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 213 template <
typename GUM_SCALAR >
214 std::ostream&
operator<<(std::ostream& output,
virtual const DiscreteVariable & variableFromName(const std::string &name) const =0
Getter by name.
aGrUM's Potential is a multi-dimensional array with tensor operators.
GUM_SCALAR minNonZeroParam() const
virtual const VariableNodeMap & variableNodeMap() const =0
Returns a constant reference to the VariableNodeMap of thisBN.
virtual ~IMarkovNet()
Destructor.
GUM_SCALAR maxNonOneParam() const
virtual NodeId idFromName(const std::string &name) const =0
Getter by name.
Container used to map discrete variables with nodes.
Base class for discrete random variable.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
The class for generic Hash Tables.
Virtual base class for PGMs using a undirected graph.
virtual const DiscreteVariable & variable(NodeId id) const =0
Returns a constant reference over a variable given it's node id.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
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.
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
Size maxVarDomainSize() const
virtual NodeId nodeId(const DiscreteVariable &var) const =0
Return id node from discrete var pointer.
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.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
GUM_SCALAR maxParam() const
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
Size NodeId
Type for node ids.
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 !