![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
the d-separation algorithm as described in Koller & Friedman (2009) More...
#include <dSeparation.h>
Public Member Functions | |
Constructors / Destructors | |
dSeparation () | |
default constructor More... | |
dSeparation (const dSeparation &from) | |
copy constructor More... | |
dSeparation (dSeparation &&from) | |
move constructor More... | |
~dSeparation () | |
destructor More... | |
Operators | |
dSeparation & | operator= (const dSeparation &from) |
copy operator More... | |
dSeparation & | operator= (dSeparation &&from) |
move operator More... | |
Accessors / Modifiers | |
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> | |
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... | |
the d-separation algorithm as described in Koller & Friedman (2009)
Definition at line 43 of file dSeparation.h.
INLINE gum::dSeparation::dSeparation | ( | ) |
default constructor
Definition at line 33 of file dSeparation_inl.h.
References gum::Set< Key, Alloc >::emplace().
INLINE gum::dSeparation::dSeparation | ( | const dSeparation & | from | ) |
copy constructor
Definition at line 40 of file dSeparation_inl.h.
References gum::Set< Key, Alloc >::emplace().
INLINE gum::dSeparation::dSeparation | ( | dSeparation && | from | ) |
move constructor
Definition at line 44 of file dSeparation_inl.h.
References gum::Set< Key, Alloc >::emplace().
INLINE gum::dSeparation::~dSeparation | ( | ) |
destructor
Definition at line 48 of file dSeparation_inl.h.
References gum::Set< Key, Alloc >::emplace().
INLINE dSeparation & gum::dSeparation::operator= | ( | const dSeparation & | from | ) |
INLINE dSeparation & gum::dSeparation::operator= | ( | dSeparation && | from | ) |
void gum::dSeparation::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
Definition at line 36 of file dSeparation_tpl.h.
References gum::Set< Key, Alloc >::emplace().
void gum::dSeparation::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.
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 40 of file dSeparation.cpp.
References gum::Set< Key, Alloc >::emplace().