49#ifndef GUM_SIMPLE_MARKOV_NET_H
50#define GUM_SIMPLE_MARKOV_NET_H
60 template <
typename GUM_SCALAR >
74 template <
typename GUM_SCALAR >
116 virtual const Tensor< GUM_SCALAR >&
factor(
const NodeSet& varIds)
const = 0;
225 virtual std::string
toDot()
const;
252 NodeSet& alreadyVisited)
const;
256#ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
262 template <
typename GUM_SCALAR >
Template implementation of bns/bayesNet.h classes.
Class representing probabilistic undirected model.
Base class for discrete random variable.
The class for generic Hash Tables.
Class representing the minimal interface for Markov random field.
IMarkovRandomField()
Default constructor.
virtual std::string toDot() const
virtual const DiscreteVariable & variableFromName(const std::string &name) const =0
Getter by name.
virtual const VariableNodeMap & variableNodeMap() const =0
Returns a constant reference to the VariableNodeMap of thisBN.
GUM_SCALAR minParam() const
virtual const Tensor< GUM_SCALAR > & factor(const NodeSet &varIds) const =0
Returns the factor of a set of variable.
bool operator!=(const IMarkovRandomField< GUM_SCALAR > &from) const
std::string toString() const
virtual const DiscreteVariable & variable(NodeId id) const =0
Returns a constant reference over a variable given it's node id.
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
GUM_SCALAR maxNonOneParam() const
bool operator==(const IMarkovRandomField< GUM_SCALAR > &from) const
This operator compares 2 BNs !
virtual ~IMarkovRandomField()
Destructor.
virtual NodeId nodeId(const DiscreteVariable &var) const =0
Return id node from discrete var pointer.
GUM_SCALAR maxParam() const
NodeSet minimalCondSet(NodeId target, const NodeSet &soids) const
IMarkovRandomField< GUM_SCALAR > & operator=(const IMarkovRandomField< GUM_SCALAR > &source)
Copy operator.
virtual NodeId idFromName(const std::string &name) const =0
Getter by name.
Size maxVarDomainSize() const
Size dim() const
Returns the dimension (the number of free parameters) in this bayes net.
GUM_SCALAR minNonZeroParam() const
virtual const NodeSet & smallestFactorFromNode(NodeId node) const =0
Returns the smallest factor that contains this variable.
UGmodel()
Default constructor.
Container used to map discrete variables with nodes.
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.