20 #ifndef GUM_UTILS_PRM_H 21 #define GUM_UTILS_PRM_H 47 void decomposePath(
const std::string& path, std::vector< std::string >& v);
72 template <
typename GUM_SCALAR >
77 template <
typename GUM_SCALAR >
87 template <
typename GUM_SCALAR >
92 template <
typename GUM_SCALAR >
93 void eliminateNodes(
const std::vector< const DiscreteVariable* >& elim_order,
108 #endif // GUM_UTILS_PRM_H aGrUM's Potential is a multi-dimensional array with tensor operators.
class for NoisyOR-net implementation as multiDim
Headers of the MultiDimBijArray class.
Headers of MultiDimSparse.
class for multiDimNoisyORCompound
Base class for discrete random variable.
gum is the global namespace for all aGrUM entities
Representation of a setA Set is a structure that contains arbitrary elements.
Header of the Potential class.
float prm_float
PRMType for real numbers.
Set of pairs of elements with fast search for both elements.
Potential< GUM_SCALAR > * copyPotential(const Bijection< const DiscreteVariable *, const DiscreteVariable * > &bij, const Potential< GUM_SCALAR > &source)
Returns a copy of a Potential after applying a bijection over the variables in source.
Efficient functionals for projecting multiDimensional tables.
void eliminateNode(const DiscreteVariable *var, Set< Potential< GUM_SCALAR > * > &pool, Set< Potential< GUM_SCALAR > * > &trash)
Proceeds with the elimination of var in pool.
void eliminateNodes(const std::vector< const DiscreteVariable * > &elim_order, Set< Potential< GUM_SCALAR > * > &pool, Set< Potential< GUM_SCALAR > * > &trash)
NodeId nextNodeId()
Returns the next value of an unique counter for PRM's node id.
Headers of the MultiDimBucket class.
void decomposePath(const std::string &path, std::vector< std::string > &v)
Decompose a string in a vector of strings using "." as separators.
Size NodeId
Type for node ids.
Potential< GUM_SCALAR > * multPotential(const Potential< GUM_SCALAR > &t1, const Potential< GUM_SCALAR > &t2)