MultiAgentDecisionProcess
ObservationModelDiscrete Class Referenceabstract

ObservationModelDiscrete represents a discrete observation model. More...

#include <ObservationModelDiscrete.h>

Inheritance diagram for ObservationModelDiscrete:
[legend]

Public Member Functions

virtual ObservationModelDiscreteClone () const =0
 Returns a pointer to a copy of this class. More...
 
 ObservationModelDiscrete (int nrS=1, int nrJA=1, int nrJO=1)
 Constructor with the dimensions of the observation model. More...
 
Index SampleJointObservation (Index jaI, Index sucI)
 Sample a joint observation. More...
 
Index SampleJointObservation (Index sI, Index jaI, Index sucI)
 Sample a joint observation. More...
 
std::string SoftPrint () const
 SoftPrints tabular observation model. More...
 
virtual ~ObservationModelDiscrete ()
 Destructor. More...
 
- Public Member Functions inherited from ObservationModelDiscreteInterface
virtual double Get (Index ja_i, Index suc_s_i, Index jo_i) const =0
 Returns P(jo|ja,s') More...
 
virtual double Get (Index s_i, Index ja_i, Index suc_s_i, Index jo_i) const
 
 ObservationModelDiscreteInterface ()
 Constructor with the dimensions of the observation model. More...
 
virtual void Set (Index ja_i, Index suc_s_i, Index jo_i, double prob)=0
 Sets P(o|ja,s') More...
 
virtual void Set (Index s_i, Index ja_i, Index suc_s_i, Index jo_i, double prob)
 
virtual ~ObservationModelDiscreteInterface ()
 Destructor. More...
 
- Public Member Functions inherited from ObservationModel
 ObservationModel ()
 default Constructor More...
 
void Print () const
 
virtual ~ObservationModel ()
 Destructor. More...
 

Private Attributes

int _m_nrJointActions
 The number of joint actions. More...
 
int _m_nrJointObservations
 The number of joint observations. More...
 
int _m_nrStates
 The number of states. More...
 

Detailed Description

ObservationModelDiscrete represents a discrete observation model.

Constructor & Destructor Documentation

ObservationModelDiscrete::ObservationModelDiscrete ( int  nrS = 1,
int  nrJA = 1,
int  nrJO = 1 
)

Constructor with the dimensions of the observation model.

ObservationModelDiscrete::~ObservationModelDiscrete ( )
virtual

Destructor.

Member Function Documentation

virtual ObservationModelDiscrete* ObservationModelDiscrete::Clone ( ) const
pure virtual
Index ObservationModelDiscrete::SampleJointObservation ( Index  jaI,
Index  sucI 
)
Index ObservationModelDiscrete::SampleJointObservation ( Index  sI,
Index  jaI,
Index  sucI 
)

Sample a joint observation.

References _m_nrJointObservations, and ObservationModelDiscreteInterface::Get().

Member Data Documentation

int ObservationModelDiscrete::_m_nrJointActions
private

The number of joint actions.

Referenced by SoftPrint().

int ObservationModelDiscrete::_m_nrJointObservations
private

The number of joint observations.

Referenced by SampleJointObservation(), and SoftPrint().

int ObservationModelDiscrete::_m_nrStates
private

The number of states.

Referenced by SoftPrint().