26 #ifndef GUM_BARREN_NODES_FINDER_H 27 #define GUM_BARREN_NODES_FINDER_H 101 template <
typename GUM_SCALAR >
123 #ifndef GUM_NO_INLINE 125 #endif // GUM_NO_INLINE
const NodeSet * __observed_nodes
the set of observed nodes
Class representing Bayesian networks.
Class representing the minimal interface for Bayesian Network.
gum is the global namespace for all aGrUM entities
The class for generic Hash Tables.
BarrenNodesFinder & operator=(const BarrenNodesFinder &from)
copy operator
NodeSet barrenNodes()
returns the set of barren nodes
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
const NodeSet * __target_nodes
the set of targeted nodes
void setEvidence(const NodeSet *observed_nodes)
sets the observed nodes in the DAG
Detect barren nodes for inference in Bayesian networks.
Basic class for all graphs of cliques (join trees, etc)
~BarrenNodesFinder()
destructor
Base classes for directed acyclic graphs.
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