![]() |
aGrUM 2.3.2
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. | |
| template<typename GUM_SCALAR, class TABLE> | |
| static void | relevantTensors (const IBayesNet< GUM_SCALAR > &bn, const NodeSet &query, const NodeSet &hardEvidence, const NodeSet &softEvidence, Set< const TABLE * > &tensors) |
| update a set of tensors, keeping only those d-connected with query variables given evidence | |
Private Member Functions | |
Constructors / Destructors | |
| BayesBall () | |
| Default constructor. | |
| ~BayesBall () | |
| Destructor. | |
Implementation of Shachter's Bayes Balls algorithm.
Definition at line 67 of file BayesBall.h.
|
private |
Default constructor.
Definition at line 54 of file BayesBall_inl.h.
References BayesBall().
Referenced by BayesBall(), and ~BayesBall().
|
private |
Destructor.
Definition at line 56 of file BayesBall_inl.h.
References BayesBall().
|
static |
update a set of tensors, keeping only those d-connected with query variables given evidence
Definition at line 53 of file BayesBall_tpl.h.
References gum::ArcGraphPart::children(), gum::DAGmodel::dag(), gum::HashTable< Key, Val >::empty(), gum::List< Val >::empty(), gum::HashTable< Key, Val >::erase(), gum::Set< Key >::erase(), gum::HashTable< Key, Val >::exists(), gum::Set< Key >::exists(), gum::List< Val >::front(), gum::HashTable< Key, Val >::insert(), gum::List< Val >::insert(), gum::IBayesNet< GUM_SCALAR >::nodeId(), gum::ArcGraphPart::parents(), gum::List< Val >::popFront(), and gum::NodeGraphPart::size().
|
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 55 of file BayesBall.cpp.
References gum::ArcGraphPart::children(), gum::Set< Key >::clear(), gum::List< Val >::empty(), gum::HashTable< Key, Val >::exists(), gum::Set< Key >::exists(), gum::List< Val >::front(), gum::HashTable< Key, Val >::insert(), gum::List< Val >::insert(), gum::Set< Key >::insert(), gum::ArcGraphPart::parents(), gum::List< Val >::popFront(), and gum::NodeGraphPart::size().