28 #ifndef GUM_BARREN_NODES_FINDER_H 29 #define GUM_BARREN_NODES_FINDER_H 32 #include <agrum/BN/BayesNet.h> 33 #include <agrum/agrum.h> 34 #include <agrum/tools/graphs/DAG.h> 35 #include <agrum/tools/graphs/cliqueGraph.h> 88 void setDAG(
const DAG* new_dag);
124 #ifndef GUM_NO_INLINE 125 # include <agrum/BN/algorithms/barrenNodesFinder_inl.h> 129 #include <agrum/BN/algorithms/barrenNodesFinder_tpl.h> BarrenNodesFinder & operator=(BarrenNodesFinder &&from)
move operator
const NodeSet * _observed_nodes_
the set of observed nodes
INLINE void emplace(Args &&... args)
const NodeSet * _target_nodes_
the set of targeted nodes
BarrenNodesFinder(const BarrenNodesFinder &from)
copy constructor
BarrenNodesFinder & operator=(const BarrenNodesFinder &from)
copy operator
ArcProperty< NodeSet > barrenNodes(const CliqueGraph &junction_tree)
returns the set of barren nodes in the messages sent in a junction tree
NodeSet barrenNodes()
returns the set of barren nodes
BarrenNodesFinder(BarrenNodesFinder &&from) noexcept
move constructor
const DAG * _dag_
the DAG on which we compute the barren nodes
BarrenNodesFinder(const DAG *dag)
default constructor
void setTargets(const NodeSet *target_nodes)
sets the set of target nodes we are interested in
void setEvidence(const NodeSet *observed_nodes)
sets the observed nodes in the DAG
~BarrenNodesFinder()
destructor
void setDAG(const DAG *new_dag)
sets a new DAG
ArcProperty< Set< const Potential< GUM_SCALAR > *> > barrenPotentials(const CliqueGraph &junction_tree, const IBayesNet< GUM_SCALAR > &bn)
returns the set of barren potentials in messages sent in a junction tree