![]() |
aGrUM 3.1.1
a C++ library for (probabilistic) graphical models
|
This class is an implementation of the Structured Variable Elimination algorithm on PRM<GUM_SCALAR>. More...
#include <agrum/PRM/SVE.h>
Public Types | |
| using | EMap = NodeProperty< const Tensor< GUM_SCALAR >* > |
| Code alias. | |
| using | EMapIterator = typename NodeProperty< const Tensor< GUM_SCALAR >* >::iterator_safe |
| Code alias. | |
| using | EMapConstIterator |
| Code alias. | |
Public Member Functions | |
Constructors & destructor. | |
| SVE (const PRM< GUM_SCALAR > &prm, const PRMSystem< GUM_SCALAR > &system) | |
| Default Constructor. | |
| ~SVE () override | |
| Destructor. | |
Getters & setters. | |
| std::string | name () const override |
| Returns the name of the current inference algorithm. | |
Query methods. | |
| void | posterior (const Chain &chain, Tensor< GUM_SCALAR > &m) |
| Compute the posterior of the formal attribute pointed by chain and stores it in m. | |
| void | joint (const std::vector< Chain > &chains, Tensor< GUM_SCALAR > &j) |
| Compute the joint probability of the formals attributes pointed by chains and stores it in m. | |
Evidence handling. | |
| EMap & | evidence (const PRMInstance< GUM_SCALAR > &i) |
| Returns EMap of evidences over i. | |
| EMap & | evidence (const PRMInstance< GUM_SCALAR > *i) |
| Returns EMap of evidences over i. | |
| const EMap & | evidence (const PRMInstance< GUM_SCALAR > &i) const |
| Returns EMap of evidences over i. | |
| const EMap & | evidence (const PRMInstance< GUM_SCALAR > *i) const |
| Returns EMap of evidences over i. | |
| bool | hasEvidence (const PRMInstance< GUM_SCALAR > &i) const |
| Returns true if i has evidence. | |
| bool | hasEvidence (const PRMInstance< GUM_SCALAR > *i) const |
| Returns EMap of evidences over i. | |
| bool | hasEvidence (const Chain &chain) const |
| Returns true if i has evidence on PRMAttribute<GUM_SCALAR> a. | |
| bool | hasEvidence () const |
| Returns true if i has evidence on PRMAttribute<GUM_SCALAR> a. | |
| void | addEvidence (const Chain &chain, const Tensor< GUM_SCALAR > &p) |
| Add an evidence to the given instance's elt. | |
| void | removeEvidence (const Chain &chain) |
| Remove evidence on the given instance's elt. | |
| void | clearEvidence () |
| Remove all evidences. | |
Protected Attributes | |
Protected members. | |
| PRM< GUM_SCALAR > const * | prm_ |
| The PRM<GUM_SCALAR> on which inference is done. | |
| PRMSystem< GUM_SCALAR > const * | sys_ |
| The Model on which inference is done. | |
Private Types | |
| using | BucketSet = Set< Tensor< GUM_SCALAR >* > |
| Code alias. | |
| using | BucketSetIterator = typename Set< Tensor< GUM_SCALAR >* >::iterator_safe |
| using | ArraySetIterator = typename Set< MultiDimArray< GUM_SCALAR >* >::iterator_safe |
Private Member Functions | |
Inference sub methods. | |
| void | _eliminateNodes_ (const PRMInstance< GUM_SCALAR > *query, NodeId id, BucketSet &pool, BucketSet &trash) |
| Returns true if second can be eliminated before first. | |
| void | _eliminateNodesDownward_ (const PRMInstance< GUM_SCALAR > *from, const PRMInstance< GUM_SCALAR > *i, BucketSet &pool, BucketSet &trash, List< const PRMInstance< GUM_SCALAR > * > &elim_list, Set< const PRMInstance< GUM_SCALAR > * > &ignore, Set< const PRMInstance< GUM_SCALAR > * > &eliminated) |
| Returns true if second can be eliminated before first. | |
| void | _eliminateNodesUpward_ (const PRMInstance< GUM_SCALAR > *i, BucketSet &pool, BucketSet &trash, List< const PRMInstance< GUM_SCALAR > * > &elim_list, Set< const PRMInstance< GUM_SCALAR > * > &ignore, Set< const PRMInstance< GUM_SCALAR > * > &eliminated) |
| Returns true if second can be eliminated before first. | |
| void | _eliminateNodesWithEvidence_ (const PRMInstance< GUM_SCALAR > *i, BucketSet &pool, BucketSet &trash, Set< NodeId > *delayedVars=0) |
| Returns true if second can be eliminated before first. | |
| void | _eliminateDelayedVariables_ (const PRMInstance< GUM_SCALAR > *i, BucketSet &pool, BucketSet &trash) |
| Returns true if second can be eliminated before first. | |
| void | _insertLiftedNodes_ (const PRMInstance< GUM_SCALAR > *i, BucketSet &pool, BucketSet &trash) |
| Returns true if second can be eliminated before first. | |
| void | _variableElimination_ (const PRMInstance< GUM_SCALAR > *i, BucketSet &pool, BucketSet &trash, Set< NodeId > *delayedVars=0) |
| Returns true if second can be eliminated before first. | |
| bool | _checkElimOrder_ (const PRMInstance< GUM_SCALAR > *first, const PRMInstance< GUM_SCALAR > *second) |
| Returns true if second can be eliminated before first. | |
| void | _initElimOrder_ () |
| Returns true if second can be eliminated before first. | |
| void | _insertEvidence_ (const PRMInstance< GUM_SCALAR > *i, BucketSet &pool) |
| Returns true if second can be eliminated before first. | |
| void | _addDelayedVariable_ (const PRMInstance< GUM_SCALAR > *i, const PRMInstance< GUM_SCALAR > *j, NodeId id) |
| When there is a loop in the references some variable elimination must be delayed, this methods add such variable to delayedVariables to keep track of them. | |
| std::vector< NodeId > & | _getElimOrder_ (const PRMClass< GUM_SCALAR > &c) |
| Returns true if second can be eliminated before first. | |
| Tensor< GUM_SCALAR > * | _getAggTensor_ (const PRMInstance< GUM_SCALAR > *i, const PRMAggregate< GUM_SCALAR > *agg) |
| Returns true if second can be eliminated before first. | |
| void | _initLiftedNodes_ (const PRMClass< GUM_SCALAR > &c) |
| Returns true if second can be eliminated before first. | |
| std::string | _trim_ (std::string_view s) |
| Returns true if second can be eliminated before first. | |
Private Attributes | |
| HashTable< const PRMClass< GUM_SCALAR > *, std::vector< NodeId > * > | _elim_orders_ |
| HashTable< const PRMClass< GUM_SCALAR > *, BucketSet * > | _lifted_pools_ |
| Sequence< std::string > * | _class_elim_order_ |
| HashTable< const PRMInstance< GUM_SCALAR > *, gum::VariableSet * > | _delayedVariables_ |
| HashTable< std::string, Size > | _delayedVariablesCounters_ |
| Some variable must be delayed for more than one PRMInstance<GUM_SCALAR>, when the delayed variable counter reach 0 it can be eliminated. | |
| BucketSet | _lifted_trash_ |
Query methods. | |
| using | Chain = typename PRMInference< GUM_SCALAR >::Chain |
| Code alias. | |
| void | evidenceAdded_ (const Chain &chain) override |
| See PRMInference<GUM_SCALAR>::evidenceAdded_(). | |
| void | evidenceRemoved_ (const Chain &chain) override |
| See PRMInference<GUM_SCALAR>::evidenceRemoved_(). | |
| void | posterior_ (const Chain &chain, Tensor< GUM_SCALAR > &m) override |
| See PRMInference<GUM_SCALAR>::posterior_(). | |
| void | joint_ (const std::vector< Chain > &queries, Tensor< GUM_SCALAR > &j) override |
| See PRMInference<GUM_SCALAR>::joint_(). | |
Private evidence handling methods and members. | |
| using | EvidenceIterator |
| Code alias. | |
| using | EvidenceConstIterator |
| Code alias. | |
| HashTable< const PRMInstance< GUM_SCALAR > *, EMap * > | _evidences_ |
| Mapping of evidence over PRMInstance<GUM_SCALAR>'s nodes. | |
| EMap & | _EMap_ (const PRMInstance< GUM_SCALAR > *i) |
| Private getter over evidences, if necessary creates an EMap for i. | |
This class is an implementation of the Structured Variable Elimination algorithm on PRM<GUM_SCALAR>.
|
private |
|
private |
|
private |
|
protected |
|
inherited |
Code alias.
Definition at line 74 of file PRMInference.h.
|
inherited |
Code alias.
Definition at line 80 of file PRMInference.h.
|
inherited |
Code alias.
Definition at line 77 of file PRMInference.h.
|
privateinherited |
Code alias.
Definition at line 241 of file PRMInference.h.
|
privateinherited |
| gum::prm::SVE< GUM_SCALAR >::SVE | ( | const PRM< GUM_SCALAR > & | prm, |
| const PRMSystem< GUM_SCALAR > & | system ) |
Default Constructor.
Definition at line 623 of file SVE_tpl.h.
References gum::prm::PRMInference< GUM_SCALAR >::PRMInference(), SVE(), and _class_elim_order_.
Referenced by SVE(), and ~SVE().
|
override |
Destructor.
Definition at line 128 of file SVE_tpl.h.
References SVE(), _class_elim_order_, _delayedVariables_, _elim_orders_, _lifted_pools_, and _lifted_trash_.
|
private |
When there is a loop in the references some variable elimination must be delayed, this methods add such variable to delayedVariables to keep track of them.
| i | An PRMInstance<GUM_SCALAR> with a child of j->get(id). |
| j | The PRMInstance<GUM_SCALAR> with the delayed variable. |
| id | The NodeId of the delayed variable. |
Definition at line 674 of file SVE_tpl.h.
References _delayedVariables_, _delayedVariablesCounters_, gum::prm::PRMInstance< GUM_SCALAR >::get(), and gum::prm::PRMObject::name().
Referenced by _eliminateNodes_(), and _eliminateNodesDownward_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 648 of file SVE_tpl.h.
References _class_elim_order_, _initElimOrder_(), _trim_(), and gum::prm::PRMInstance< GUM_SCALAR >::type().
Referenced by _eliminateNodes_(), _eliminateNodesDownward_(), and _eliminateNodesUpward_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 230 of file SVE_tpl.h.
References _delayedVariables_, gum::MultiDimBucket< GUM_ELEMENT >::add(), gum::MultiDimBucket< GUM_ELEMENT >::allVariables(), and gum::Set< Key >::insert().
Referenced by _eliminateNodes_(), and _variableElimination_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 147 of file SVE_tpl.h.
References _addDelayedVariable_(), _checkElimOrder_(), _delayedVariables_, _eliminateDelayedVariables_(), _eliminateNodesDownward_(), _eliminateNodesUpward_(), _insertEvidence_(), gum::prm::PRMInstance< GUM_SCALAR >::begin(), gum::prm::PRMInstance< GUM_SCALAR >::beginInvRef(), gum::prm::eliminateNodes(), gum::StaticTriangulation::eliminationOrder(), gum::List< Val >::empty(), gum::prm::PRMInstance< GUM_SCALAR >::end(), gum::prm::PRMInstance< GUM_SCALAR >::endInvRef(), gum::Set< Key >::exists(), gum::List< Val >::front(), gum::prm::PRMInstance< GUM_SCALAR >::getInstances(), gum::prm::PRMInference< GUM_SCALAR >::hasEvidence(), gum::List< Val >::insert(), gum::Set< Key >::insert(), gum::prm::InstanceBayesNet< GUM_SCALAR >::modalities(), gum::DAGmodel::moralGraph(), gum::List< Val >::popFront(), gum::prm::PRMInstance< GUM_SCALAR >::type(), and gum::prm::InstanceBayesNet< GUM_SCALAR >::variable().
Referenced by posterior_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 257 of file SVE_tpl.h.
References _addDelayedVariable_(), _checkElimOrder_(), _eliminateNodesDownward_(), _variableElimination_(), gum::prm::PRMInstance< GUM_SCALAR >::beginInvRef(), gum::Set< Key >::empty(), gum::prm::PRMInstance< GUM_SCALAR >::endInvRef(), gum::prm::PRMInstance< GUM_SCALAR >::getInstances(), gum::Set< Key >::insert(), and gum::prm::PRMInstance< GUM_SCALAR >::type().
Referenced by _eliminateNodes_(), _eliminateNodesDownward_(), and _eliminateNodesUpward_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 343 of file SVE_tpl.h.
References _checkElimOrder_(), _eliminateNodesDownward_(), _eliminateNodesUpward_(), _variableElimination_(), gum::prm::PRMInstance< GUM_SCALAR >::beginInvRef(), gum::prm::PRMInstance< GUM_SCALAR >::endInvRef(), gum::prm::PRMInstance< GUM_SCALAR >::getInstances(), gum::List< Val >::insert(), and gum::prm::PRMInstance< GUM_SCALAR >::type().
Referenced by _eliminateNodes_(), and _eliminateNodesUpward_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 396 of file SVE_tpl.h.
References _elim_orders_, _getAggTensor_(), _insertEvidence_(), _insertLiftedNodes_(), gum::prm::eliminateNodes(), gum::StaticTriangulation::eliminationOrder(), gum::prm::PRMInference< GUM_SCALAR >::evidence(), gum::Set< Key >::exists(), gum::prm::PRMInstance< GUM_SCALAR >::get(), GUM_ERROR, gum::Set< Key >::insert(), gum::prm::InstanceBayesNet< GUM_SCALAR >::modalities(), gum::DAGmodel::moralGraph(), gum::prm::PRMInstance< GUM_SCALAR >::type(), and gum::prm::InstanceBayesNet< GUM_SCALAR >::variable().
Referenced by _variableElimination_().
|
privateinherited |
Private getter over evidences, if necessary creates an EMap for i.
Definition at line 117 of file PRMInference_tpl.h.
References _evidences_.
Referenced by removeEvidence().
|
private |
Returns true if second can be eliminated before first.
Definition at line 658 of file SVE_tpl.h.
References gum::prm::PRMInstance< GUM_SCALAR >::get(), and gum::prm::PRMClassElement< GUM_SCALAR >::id().
Referenced by _eliminateNodesWithEvidence_(), and _variableElimination_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 635 of file SVE_tpl.h.
References _elim_orders_.
|
private |
Returns true if second can be eliminated before first.
Definition at line 548 of file SVE_tpl.h.
References _class_elim_order_, gum::ArcGraphPart::children(), gum::Set< Key >::contains(), gum::Set< Key >::empty(), gum::SequenceImplementation< Key, Gen >::exists(), gum::prm::ClassDependencyGraph< GUM_SCALAR >::get(), gum::SequenceImplementation< Key, Gen >::insert(), gum::Set< Key >::insert(), gum::prm::ClassDependencyGraph< GUM_SCALAR >::internalDag(), name(), gum::NodeGraphPart::nodes(), gum::ArcGraphPart::parents(), and gum::prm::PRMInference< GUM_SCALAR >::prm_.
Referenced by _checkElimOrder_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 498 of file SVE_tpl.h.
References _elim_orders_, _lifted_pools_, _lifted_trash_, gum::prm::PRMClassElementContainer< GUM_SCALAR >::containerDag(), gum::prm::eliminateNode(), gum::StaticTriangulation::eliminationOrder(), gum::Set< Key >::erase(), gum::Set< Key >::exists(), gum::prm::PRMClass< GUM_SCALAR >::get(), gum::Set< Key >::insert(), gum::prm::PRMClassElement< GUM_SCALAR >::isAggregate(), gum::prm::PRMClassElement< GUM_SCALAR >::isAttribute(), gum::prm::PRMClassElementContainer< GUM_SCALAR >::isInnerNode(), gum::prm::PRMClass< GUM_SCALAR >::isOutputNode(), gum::prm::ClassBayesNet< GUM_SCALAR >::modalities(), gum::DAGmodel::moralGraph(), gum::NodeGraphPart::nodes(), gum::ArcGraphPart::parents(), gum::List< Val >::push_back(), and gum::Set< Key >::size().
Referenced by _insertLiftedNodes_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 629 of file SVE_tpl.h.
References gum::prm::PRMInference< GUM_SCALAR >::evidence(), and gum::Set< Key >::insert().
Referenced by _eliminateNodes_(), and _eliminateNodesWithEvidence_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 478 of file SVE_tpl.h.
References _initLiftedNodes_(), _lifted_pools_, gum::prm::PRMInstance< GUM_SCALAR >::bijection(), gum::prm::copyTensor(), gum::Set< Key >::insert(), and gum::prm::PRMInstance< GUM_SCALAR >::type().
Referenced by _eliminateNodesWithEvidence_(), and _variableElimination_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 640 of file SVE_tpl.h.
Referenced by _checkElimOrder_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 305 of file SVE_tpl.h.
References _delayedVariables_, _elim_orders_, _eliminateDelayedVariables_(), _eliminateNodesWithEvidence_(), _getAggTensor_(), _insertLiftedNodes_(), gum::prm::eliminateNodes(), gum::Set< Key >::exists(), gum::prm::PRMInference< GUM_SCALAR >::hasEvidence(), gum::Set< Key >::insert(), gum::prm::PRMInstance< GUM_SCALAR >::type(), and gum::prm::InstanceBayesNet< GUM_SCALAR >::variable().
Referenced by _eliminateNodesDownward_(), and _eliminateNodesUpward_().
|
inherited |
Add an evidence to the given instance's elt.
| chain | The variable being observed. |
| p | The Tensor added (by copy) as evidence. |
| NotFound | Raised if elt does not belong to i. |
| OperationNotAllowed | Raised if p is inconsistent with elt. |
Definition at line 128 of file PRMInference_tpl.h.
References gum::Instantiation::end(), GUM_ERROR, gum::Instantiation::inc(), and gum::Instantiation::setFirst().
|
inherited |
Remove all evidences.
Definition at line 57 of file PRMInference_tpl.h.
References _evidences_.
Referenced by ~PRMInference(), and operator=().
|
inherited |
Returns EMap of evidences over i.
| NotFound | if i has no evidence. |
Definition at line 173 of file PRMInference_tpl.h.
References _evidences_, and GUM_ERROR.
Referenced by gum::prm::SVE< GUM_SCALAR >::_eliminateNodesWithEvidence_(), gum::prm::SVED< GUM_SCALAR >::_eliminateNodesWithEvidence_(), gum::prm::SVE< GUM_SCALAR >::_insertEvidence_(), gum::prm::SVED< GUM_SCALAR >::_insertEvidence_(), gum::prm::StructuredInference< GUM_SCALAR >::_reduceAloneInstances_(), evidence(), gum::prm::GroundedInference< GUM_SCALAR >::evidenceAdded_(), hasEvidence(), posterior(), and gum::prm::StructuredInference< GUM_SCALAR >::posterior_().
|
inherited |
Returns EMap of evidences over i.
| NotFound | if i has no evidence. |
Definition at line 180 of file PRMInference_tpl.h.
References _evidences_, and GUM_ERROR.
|
inherited |
Returns EMap of evidences over i.
| NotFound | if i has no evidence. |
Definition at line 187 of file PRMInference_tpl.h.
References PRMInference(), _evidences_, evidence(), and GUM_ERROR.
|
inherited |
Returns EMap of evidences over i.
| NotFound | if i has no evidence. |
Definition at line 194 of file PRMInference_tpl.h.
References _evidences_, and GUM_ERROR.
|
overrideprotectedvirtual |
See PRMInference<GUM_SCALAR>::evidenceAdded_().
Implements gum::prm::PRMInference< GUM_SCALAR >.
Definition at line 664 of file SVE_tpl.h.
|
overrideprotectedvirtual |
See PRMInference<GUM_SCALAR>::evidenceRemoved_().
Implements gum::prm::PRMInference< GUM_SCALAR >.
Definition at line 669 of file SVE_tpl.h.
|
inherited |
Returns true if i has evidence on PRMAttribute<GUM_SCALAR> a.
Definition at line 215 of file PRMInference_tpl.h.
References _evidences_.
|
inherited |
Returns true if i has evidence on PRMAttribute<GUM_SCALAR> a.
Definition at line 210 of file PRMInference_tpl.h.
References evidence(), and hasEvidence().
|
inherited |
Returns true if i has evidence.
Definition at line 200 of file PRMInference_tpl.h.
References _evidences_.
Referenced by gum::prm::SVE< GUM_SCALAR >::_eliminateNodes_(), gum::prm::SVED< GUM_SCALAR >::_eliminateNodes_(), gum::prm::SVED< GUM_SCALAR >::_eliminateNodesDownward_(), gum::prm::SVED< GUM_SCALAR >::_eliminateNodesUpward_(), gum::prm::StructuredInference< GUM_SCALAR >::_insertNodeInElimLists_(), gum::prm::StructuredInference< GUM_SCALAR >::_reduceAloneInstances_(), gum::prm::SVE< GUM_SCALAR >::_variableElimination_(), hasEvidence(), posterior(), gum::prm::StructuredInference< GUM_SCALAR >::posterior_(), and removeEvidence().
|
inherited |
Returns EMap of evidences over i.
Definition at line 205 of file PRMInference_tpl.h.
References _evidences_.
|
inherited |
Compute the joint probability of the formals attributes pointed by chains and stores it in m.
| chains | A Set of strings of the form instance.attribute. |
| j | An empty CPF which will be filed by the joint probability over chains. |
| NotFound | Raised if some chain in chains does not point to a formal attribute. |
| OperationNotAllowed | Raise if m is not empty. |
Definition at line 257 of file PRMInference_tpl.h.
References GUM_ERROR, and joint_().
|
overrideprotectedvirtual |
See PRMInference<GUM_SCALAR>::joint_().
Implements gum::prm::PRMInference< GUM_SCALAR >.
Definition at line 618 of file SVE_tpl.h.
References GUM_ERROR.
|
overridevirtual |
Returns the name of the current inference algorithm.
Implements gum::prm::PRMInference< GUM_SCALAR >.
Definition at line 699 of file SVE_tpl.h.
Referenced by _initElimOrder_().
|
inherited |
Compute the posterior of the formal attribute pointed by chain and stores it in m.
| chain | A string of the form instance.attribute. |
| m | An empty CPF which will be filed by the posterior of chain. |
| NotFound | Raised if chain is invalid. |
| TypeError | Raised if chain does not point to an PRMAttribute<GUM_SCALAR>. |
| OperationNotAllowed | Raise if m is not empty. |
Definition at line 231 of file PRMInference_tpl.h.
References gum::prm::PRMInstance< GUM_SCALAR >::end(), evidence(), GUM_ERROR, hasEvidence(), gum::Instantiation::inc(), and gum::Instantiation::setFirst().
|
overrideprotectedvirtual |
See PRMInference<GUM_SCALAR>::posterior_().
Implements gum::prm::PRMInference< GUM_SCALAR >.
Definition at line 586 of file SVE_tpl.h.
References _eliminateNodes_(), gum::prm::PRMClassElement< GUM_SCALAR >::id(), gum::Set< Key >::insert(), gum::prm::PRMAttribute< GUM_SCALAR >::type(), and gum::prm::PRMType::variable().
|
inherited |
Remove evidence on the given instance's elt.
| chain | The variable being observed. |
| NotFound | Raised if the given names are not found. |
| TypeError | Raised if the elt is not an PRMAttribute<GUM_SCALAR>. |
Definition at line 220 of file PRMInference_tpl.h.
References _EMap_(), evidenceRemoved_(), and hasEvidence().
|
private |
Definition at line 131 of file SVE.h.
Referenced by SVE(), ~SVE(), _checkElimOrder_(), and _initElimOrder_().
|
private |
Definition at line 133 of file SVE.h.
Referenced by ~SVE(), _addDelayedVariable_(), _eliminateDelayedVariables_(), _eliminateNodes_(), and _variableElimination_().
|
private |
Some variable must be delayed for more than one PRMInstance<GUM_SCALAR>, when the delayed variable counter reach 0 it can be eliminated.
Definition at line 140 of file SVE.h.
Referenced by _addDelayedVariable_().
|
private |
Definition at line 127 of file SVE.h.
Referenced by ~SVE(), _eliminateNodesWithEvidence_(), _getElimOrder_(), _initLiftedNodes_(), and _variableElimination_().
|
privateinherited |
Mapping of evidence over PRMInstance<GUM_SCALAR>'s nodes.
Definition at line 245 of file PRMInference.h.
Referenced by PRMInference(), _EMap_(), clearEvidence(), evidence(), evidence(), evidence(), evidence(), hasEvidence(), hasEvidence(), and hasEvidence().
|
private |
Definition at line 129 of file SVE.h.
Referenced by ~SVE(), _initLiftedNodes_(), and _insertLiftedNodes_().
|
private |
Definition at line 142 of file SVE.h.
Referenced by ~SVE(), and _initLiftedNodes_().
|
protectedinherited |
The PRM<GUM_SCALAR> on which inference is done.
Definition at line 224 of file PRMInference.h.
Referenced by PRMInference(), PRMInference(), gum::prm::StructuredInference< GUM_SCALAR >::StructuredInference(), gum::prm::SVE< GUM_SCALAR >::_initElimOrder_(), gum::prm::SVED< GUM_SCALAR >::_initElimOrder_(), operator=(), and gum::prm::StructuredInference< GUM_SCALAR >::operator=().
|
protectedinherited |
The Model on which inference is done.
Definition at line 227 of file PRMInference.h.
Referenced by PRMInference(), PRMInference(), gum::prm::StructuredInference< GUM_SCALAR >::StructuredInference(), gum::prm::StructuredInference< GUM_SCALAR >::_reduceAloneInstances_(), operator=(), gum::prm::StructuredInference< GUM_SCALAR >::operator=(), and gum::prm::StructuredInference< GUM_SCALAR >::searchPatterns().