![]() |
aGrUM
0.21.0
a C++ library for (probabilistic) graphical models
|
Detect barren nodes for inference in Bayesian networks. More...
#include <barrenNodesFinder.h>
Public Member Functions | |
Constructors / Destructors | |
BarrenNodesFinder (const DAG *dag) | |
default constructor More... | |
BarrenNodesFinder (const BarrenNodesFinder &from) | |
copy constructor More... | |
BarrenNodesFinder (BarrenNodesFinder &&from) noexcept | |
move constructor More... | |
~BarrenNodesFinder () | |
destructor More... | |
Operators | |
BarrenNodesFinder & | operator= (const BarrenNodesFinder &from) |
copy operator More... | |
BarrenNodesFinder & | operator= (BarrenNodesFinder &&from) |
move operator More... | |
Accessors / Modifiers | |
void | setDAG (const DAG *new_dag) |
sets a new DAG More... | |
void | setEvidence (const NodeSet *observed_nodes) |
sets the observed nodes in the DAG More... | |
void | setTargets (const NodeSet *target_nodes) |
sets the set of target nodes we are interested in More... | |
NodeSet | barrenNodes () |
returns the set of barren nodes More... | |
ArcProperty< NodeSet > | barrenNodes (const CliqueGraph &junction_tree) |
returns the set of barren nodes in the messages sent in a junction tree More... | |
template<typename GUM_SCALAR > | |
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 More... | |
Detect barren nodes for inference in Bayesian networks.
Definition at line 46 of file barrenNodesFinder.h.
|
explicit |
default constructor
Definition at line 26 of file barrenNodesFinder_inl.h.
References gum::Set< Key, Alloc >::emplace().
INLINE gum::BarrenNodesFinder::BarrenNodesFinder | ( | const BarrenNodesFinder & | from | ) |
copy constructor
Definition at line 33 of file barrenNodesFinder_inl.h.
References gum::Set< Key, Alloc >::emplace().
|
noexcept |
move constructor
Definition at line 41 of file barrenNodesFinder_inl.h.
References gum::Set< Key, Alloc >::emplace().
INLINE gum::BarrenNodesFinder::~BarrenNodesFinder | ( | ) |
destructor
Definition at line 50 of file barrenNodesFinder_inl.h.
References gum::Set< Key, Alloc >::emplace().
NodeSet gum::BarrenNodesFinder::barrenNodes | ( | ) |
returns the set of barren nodes
Definition at line 287 of file barrenNodesFinder.cpp.
References gum::Set< Key, Alloc >::emplace().
ArcProperty< NodeSet > gum::BarrenNodesFinder::barrenNodes | ( | const CliqueGraph & | junction_tree | ) |
returns the set of barren nodes in the messages sent in a junction tree
Definition at line 37 of file barrenNodesFinder.cpp.
References gum::Set< Key, Alloc >::emplace().
ArcProperty< Set< const Potential< GUM_SCALAR > *> > gum::BarrenNodesFinder::barrenPotentials | ( | const CliqueGraph & | junction_tree, |
const IBayesNet< GUM_SCALAR > & | bn | ||
) |
returns the set of barren potentials in messages sent in a junction tree
Definition at line 27 of file barrenNodesFinder_tpl.h.
References gum::Set< Key, Alloc >::emplace().
INLINE BarrenNodesFinder & gum::BarrenNodesFinder::operator= | ( | const BarrenNodesFinder & | from | ) |
copy operator
Definition at line 56 of file barrenNodesFinder_inl.h.
References gum::Set< Key, Alloc >::emplace().
INLINE BarrenNodesFinder & gum::BarrenNodesFinder::operator= | ( | BarrenNodesFinder && | from | ) |
move operator
Definition at line 67 of file barrenNodesFinder_inl.h.
References gum::Set< Key, Alloc >::emplace().
INLINE void gum::BarrenNodesFinder::setDAG | ( | const DAG * | new_dag | ) |
sets a new DAG
Definition at line 78 of file barrenNodesFinder_inl.h.
References gum::Set< Key, Alloc >::emplace().
INLINE void gum::BarrenNodesFinder::setEvidence | ( | const NodeSet * | observed_nodes | ) |
sets the observed nodes in the DAG
Definition at line 82 of file barrenNodesFinder_inl.h.
References gum::Set< Key, Alloc >::emplace().
INLINE void gum::BarrenNodesFinder::setTargets | ( | const NodeSet * | target_nodes | ) |
sets the set of target nodes we are interested in
Definition at line 88 of file barrenNodesFinder_inl.h.
References gum::Set< Key, Alloc >::emplace().
|
private |
the DAG on which we compute the barren nodes
Definition at line 111 of file barrenNodesFinder.h.
|
private |
the set of observed nodes
Definition at line 114 of file barrenNodesFinder.h.
|
private |
the set of targeted nodes
Definition at line 117 of file barrenNodesFinder.h.