28 #ifndef GUM_GROUNDED_INFERENCE_H 29 #define GUM_GROUNDED_INFERENCE_H 31 #include <agrum/BN/inference/tools/marginalTargetedInference.h> 32 #include <agrum/PRM/inference/PRMInference.h> 45 template <
typename GUM_SCALAR >
54 GroundedInference(
const PRM< GUM_SCALAR >& prm,
const PRMSystem< GUM_SCALAR >& system);
84 void setBNInference(MarginalTargetedInference< GUM_SCALAR >* bn_inf);
114 virtual void joint_(
const std::vector<
typename PRMInference< GUM_SCALAR >::Chain >& queries,
115 Potential< GUM_SCALAR >& j);
132 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 140 #include <agrum/PRM/inference/groundedInference_tpl.h> List< const Potential< GUM_SCALAR > *> _obs_
virtual std::string name() const
Returns the bayesnet inference engine used by this class.
INLINE void emplace(Args &&... args)
virtual ~GroundedInference()
Destructor.
virtual void posterior_(const typename PRMInference< GUM_SCALAR >::Chain &chain, Potential< GUM_SCALAR > &m)
Generic method to compute the marginal of given element.
virtual void evidenceAdded_(const typename PRMInference< GUM_SCALAR >::Chain &chain)
This method is called whenever an evidence is added, but AFTER any processing made by PRMInference...
MarginalTargetedInference< GUM_SCALAR > * _inf_
The bayesnet inference engine used by this class.
virtual void joint_(const std::vector< typename PRMInference< GUM_SCALAR >::Chain > &queries, Potential< GUM_SCALAR > &j)
Generic method to compute the marginal of given element.
ParamScopeData(const std::string &s, const PRMReferenceSlot< GUM_SCALAR > &ref, Idx d)
MarginalTargetedInference< GUM_SCALAR > & getBNInference()
Returns the bayesnet inference engine used by this class.
virtual void evidenceRemoved_(const typename PRMInference< GUM_SCALAR >::Chain &chain)
This method is called whenever an evidence is removed, but BEFORE any processing made by PRMInference...
GroundedInference(const PRM< GUM_SCALAR > &prm, const PRMSystem< GUM_SCALAR > &system)
Default constructor.
GroundedInference & operator=(const GroundedInference &source)
Copy operator.
GroundedInference(const GroundedInference &source)
Copy constructor.
void setBNInference(MarginalTargetedInference< GUM_SCALAR > *bn_inf)
Defines the bayesnet inference engine used by this class.
<agrum/PRM/groundedInference.h>