![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Implementation of Shachter's Bayes Balls algorithm. More...
#include <agrum/BN/inference/BayesBall.h>
Static Public Member Functions | |
Accessors / Modifiers | |
static void | requisiteNodes (const DAG &dag, const NodeSet &query, const NodeSet &hardEvidence, const NodeSet &softEvidence, NodeSet &requisite) |
Fill the 'requisite' nodeset with the requisite nodes in dag given a query and evidence. More... | |
template<typename GUM_SCALAR , template< typename > class TABLE> | |
static void | relevantPotentials (const IBayesNet< GUM_SCALAR > &bn, const NodeSet &query, const NodeSet &hardEvidence, const NodeSet &softEvidence, Set< const TABLE< GUM_SCALAR > * > &potentials) |
update a set of potentials, keeping only those d-connected with query variables given evidence More... | |
Implementation of Shachter's Bayes Balls algorithm.
Definition at line 51 of file BayesBall.h.
|
private |
Default constructor.
Definition at line 33 of file BayesBall_inl.h.
References gum::Set< Key, Alloc >::emplace().
|
private |
Destructor.
Definition at line 39 of file BayesBall_inl.h.
References gum::Set< Key, Alloc >::emplace().
|
static |
update a set of potentials, keeping only those d-connected with query variables given evidence
Definition at line 33 of file BayesBall_tpl.h.
References gum::Set< Key, Alloc >::emplace().
|
static |
Fill the 'requisite' nodeset with the requisite nodes in dag given a query and evidence.
Requisite nodes are those that are d-connected to at least one of the query nodes given a set of hard and soft evidence
Definition at line 35 of file BayesBall.cpp.
References gum::Set< Key, Alloc >::emplace().