![]() |
aGrUM
0.14.2
|
Class building the markov Blanket from a BN and a nodeName. More...
#include <agrum/BN/algorithms/MarokovBlanket.h>
Public Member Functions | |
MarkovBlanket (const DAGmodel &m, NodeId n) | |
MarkovBlanket (const DAGmodel &m, const std::string &name) | |
~MarkovBlanket () | |
DiGraph | mb () |
std::string | toDot () const |
const NodeSet & | parents (const NodeId id) const |
wrapping DiGraph::parents(id) More... | |
const NodeSet & | children (const NodeId id) const |
wrapping DiGraph::parents(id) More... | |
Size | sizeArcs () const |
wrapping DiGraph::sizeArcs() More... | |
const ArcSet & | arcs () const |
wrapping DiGraph::arcs() More... | |
Size | sizeNodes () const |
wrapping DiGraph::sizeNodes() More... | |
Size | size () const |
wrapping DiGraph::size() More... | |
const NodeGraphPart & | nodes () const |
wrapping DiGraph::nodes() More... | |
bool | hasSameStructure (const DAGmodel &other) |
Class building the markov Blanket from a BN and a nodeName.
The main goal of this class is to build and to encapsulate the DiGraph which represents the Markov Blanket.
Definition at line 47 of file MarkovBlanket.h.
Definition at line 34 of file MarkovBlanket.cpp.
References __buildMarkovBlanket().
gum::MarkovBlanket::MarkovBlanket | ( | const DAGmodel & | m, |
const std::string & | name | ||
) |
Definition at line 39 of file MarkovBlanket.cpp.
gum::MarkovBlanket::~MarkovBlanket | ( | ) |
Definition at line 42 of file MarkovBlanket.cpp.
|
private |
Definition at line 44 of file MarkovBlanket.cpp.
References __mb, __model, __node, __specialArcs, gum::DiGraph::addArc(), gum::NodeGraphPart::addNodeWithId(), gum::DAGmodel::children(), gum::NodeGraphPart::exists(), gum::ArcGraphPart::existsArc(), gum::NodeGraphPart::existsNode(), GUM_ERROR, gum::Set< Key, Alloc >::insert(), gum::DAGmodel::nodes(), gum::NodeGraphPart::nodes(), and gum::DAGmodel::parents().
Referenced by MarkovBlanket().
INLINE const ArcSet & gum::MarkovBlanket::arcs | ( | ) | const |
wrapping DiGraph::arcs()
Definition at line 44 of file MarkovBlanket_inl.h.
References __mb, and gum::ArcGraphPart::arcs().
Referenced by hasSameStructure().
wrapping DiGraph::parents(id)
Definition at line 38 of file MarkovBlanket_inl.h.
References __mb, and gum::ArcGraphPart::children().
Definition at line 78 of file MarkovBlanket.cpp.
References __model, arcs(), gum::DAGmodel::arcs(), gum::Set< Key, Alloc >::exists(), gum::DAGmodel::idFromName(), gum::Variable::name(), nodes(), size(), gum::DAGmodel::size(), sizeArcs(), gum::DAGmodel::sizeArcs(), and gum::DAGmodel::variable().
INLINE DiGraph gum::MarkovBlanket::mb | ( | ) |
Definition at line 32 of file MarkovBlanket_inl.h.
References __mb.
INLINE const NodeGraphPart & gum::MarkovBlanket::nodes | ( | ) | const |
wrapping DiGraph::nodes()
Definition at line 50 of file MarkovBlanket_inl.h.
References __mb, and gum::NodeGraphPart::nodes().
Referenced by hasSameStructure().
wrapping DiGraph::parents(id)
Definition at line 34 of file MarkovBlanket_inl.h.
References __mb, and gum::ArcGraphPart::parents().
INLINE Size gum::MarkovBlanket::size | ( | ) | const |
wrapping DiGraph::size()
Definition at line 48 of file MarkovBlanket_inl.h.
References __mb, and gum::NodeGraphPart::size().
Referenced by hasSameStructure().
INLINE Size gum::MarkovBlanket::sizeArcs | ( | ) | const |
wrapping DiGraph::sizeArcs()
Definition at line 42 of file MarkovBlanket_inl.h.
References __mb, and gum::ArcGraphPart::sizeArcs().
Referenced by hasSameStructure().
INLINE Size gum::MarkovBlanket::sizeNodes | ( | ) | const |
wrapping DiGraph::sizeNodes()
Definition at line 46 of file MarkovBlanket_inl.h.
References __mb, and gum::NodeGraphPart::sizeNodes().
std::string gum::MarkovBlanket::toDot | ( | ) | const |
Definition at line 99 of file MarkovBlanket.cpp.
References __mb, __model, __node, __specialArcs, gum::ArcGraphPart::children(), gum::Set< Key, Alloc >::exists(), gum::Variable::name(), gum::NodeGraphPart::nodes(), and gum::DAGmodel::variable().
|
private |
Definition at line 92 of file MarkovBlanket.h.
Referenced by __buildMarkovBlanket(), arcs(), children(), mb(), nodes(), parents(), size(), sizeArcs(), sizeNodes(), and toDot().
|
private |
Definition at line 91 of file MarkovBlanket.h.
Referenced by __buildMarkovBlanket(), hasSameStructure(), and toDot().
|
private |
Definition at line 93 of file MarkovBlanket.h.
Referenced by __buildMarkovBlanket(), and toDot().
|
private |
Definition at line 94 of file MarkovBlanket.h.
Referenced by __buildMarkovBlanket(), and toDot().