49#ifndef GUM_SIMPLE_MARKOV_NET_H
50#define GUM_SIMPLE_MARKOV_NET_H
60 template < GUM_Numeric GUM_SCALAR >
74 template < GUM_Numeric GUM_SCALAR >
116 virtual const Tensor< GUM_SCALAR >&
factor(
const NodeSet& varIds)
const = 0;
190 virtual std::string
toDot()
const;
217 NodeSet& alreadyVisited)
const;
221#ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
227 template < GUM_Numeric GUM_SCALAR >
Template implementation of bns/bayesNet.h classes.
Class representing probabilistic undirected model.
The class for generic Hash Tables.
Class representing the minimal interface for Markov random field.
virtual std::string toDot() const
IMarkovRandomField()
Default constructor.
GUM_SCALAR minParam() const
GUM_SCALAR maxParam() const
virtual const Tensor< GUM_SCALAR > & factor(const NodeSet &varIds) const =0
Returns the factor of a set of variable.
GUM_SCALAR minNonZeroParam() const
~IMarkovRandomField() override
Destructor.
Size maxVarDomainSize() const
virtual const FactorTable< GUM_SCALAR > & factors() const =0
Returns the set of factors as a IMarkovRandomField::FactorTable.
virtual std::string toDotAsFactorGraph() const
void _minimalCondSetVisit_(NodeId node, const NodeSet &soids, NodeSet &minimal, NodeSet &alreadyVisited) const
Size dim() const
Returns the dimension (the number of free parameters) in this bayes net.
bool operator==(const IMarkovRandomField< GUM_SCALAR > &from) const
This operator compares 2 BNs !
NodeSet minimalCondSet(NodeId target, const NodeSet &soids) const
IMarkovRandomField< GUM_SCALAR > & operator=(const IMarkovRandomField< GUM_SCALAR > &source)
Copy operator.
GUM_SCALAR maxNonOneParam() const
std::string toString() const
virtual const NodeSet & smallestFactorFromNode(NodeId node) const =0
Returns the smallest factor that contains this variable.
UGmodel()
Default constructor.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Size NodeId
Type for node ids.
Set< NodeId > NodeSet
Some typdefs and define for shortcuts ...
gum is the global namespace for all aGrUM entities
HashTable< NodeSet, const Tensor< GUM_SCALAR > * > FactorTable
std::ostream & operator<<(std::ostream &stream, const AVLTree< Val, Cmp > &tree)
display the content of a tree
Header of the Tensor class.