aGrUM  0.15.1
barrenNodesFinder_inl.h
Go to the documentation of this file.
1 
23 namespace gum {
24 
25 
27  INLINE BarrenNodesFinder::BarrenNodesFinder(const DAG* dag) : __dag(dag) {
28  // for debugging purposes
29  GUM_CONSTRUCTOR(BarrenNodesFinder);
30  }
31 
32 
37  // for debugging purposes
38  GUM_CONS_CPY(BarrenNodesFinder);
39  }
40 
41 
44  __dag(from.__dag), __observed_nodes(from.__observed_nodes),
45  __target_nodes(from.__target_nodes) {
46  // for debugging purposes
47  GUM_CONS_MOV(BarrenNodesFinder);
48  }
49 
50 
53  // for debugging purposes
54  GUM_DESTRUCTOR(BarrenNodesFinder);
55  }
56 
57 
61  if (this != &from) {
62  __dag = from.__dag;
65  }
66  return *this;
67  }
68 
69 
73  if (this != &from) {
74  __dag = from.__dag;
75  __observed_nodes = from.__observed_nodes;
76  __target_nodes = from.__target_nodes;
77  }
78  return *this;
79  }
80 
81 
83  INLINE void BarrenNodesFinder::setDAG(const DAG* new_dag) { __dag = new_dag; }
84 
85 
87  INLINE void BarrenNodesFinder::setEvidence(const NodeSet* observed_nodes) {
88  __observed_nodes = observed_nodes;
89  }
90 
91 
93  INLINE void BarrenNodesFinder::setTargets(const NodeSet* target_nodes) {
94  __target_nodes = target_nodes;
95  }
96 
97 
98 } /* namespace gum */
const NodeSet * __observed_nodes
the set of observed nodes
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
BarrenNodesFinder & operator=(const BarrenNodesFinder &from)
copy operator
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.
Base class for dag.
Definition: DAG.h:102
void setDAG(const DAG *new_dag)
sets a new DAG