![]() |
aGrUM
0.16.0
|
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 49 of file MarkovBlanket.h.
Definition at line 37 of file MarkovBlanket.cpp.
References __buildMarkovBlanket().
gum::MarkovBlanket::MarkovBlanket | ( | const DAGmodel & | m, |
const std::string & | name | ||
) |
Definition at line 42 of file MarkovBlanket.cpp.
gum::MarkovBlanket::~MarkovBlanket | ( | ) |
Definition at line 45 of file MarkovBlanket.cpp.
|
private |
Definition at line 47 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 47 of file MarkovBlanket_inl.h.
References __mb, and gum::ArcGraphPart::arcs().
Referenced by hasSameStructure().
wrapping DiGraph::parents(id)
Definition at line 41 of file MarkovBlanket_inl.h.
References __mb, and gum::ArcGraphPart::children().
Definition at line 81 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 35 of file MarkovBlanket_inl.h.
References __mb.
INLINE const NodeGraphPart & gum::MarkovBlanket::nodes | ( | ) | const |
wrapping DiGraph::nodes()
Definition at line 53 of file MarkovBlanket_inl.h.
References __mb, and gum::NodeGraphPart::nodes().
Referenced by hasSameStructure().
wrapping DiGraph::parents(id)
Definition at line 37 of file MarkovBlanket_inl.h.
References __mb, and gum::ArcGraphPart::parents().
INLINE Size gum::MarkovBlanket::size | ( | ) | const |
wrapping DiGraph::size()
Definition at line 51 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 45 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 49 of file MarkovBlanket_inl.h.
References __mb, and gum::NodeGraphPart::sizeNodes().
std::string gum::MarkovBlanket::toDot | ( | ) | const |
Definition at line 102 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 94 of file MarkovBlanket.h.
Referenced by __buildMarkovBlanket(), arcs(), children(), mb(), nodes(), parents(), size(), sizeArcs(), sizeNodes(), and toDot().
|
private |
Definition at line 93 of file MarkovBlanket.h.
Referenced by __buildMarkovBlanket(), hasSameStructure(), and toDot().
|
private |
Definition at line 95 of file MarkovBlanket.h.
Referenced by __buildMarkovBlanket(), and toDot().
|
private |
Definition at line 96 of file MarkovBlanket.h.
Referenced by __buildMarkovBlanket(), and toDot().