MultiAgentDecisionProcess
ObservationModelMapping Class Reference

ObservationModelMapping implements an ObservationModelDiscrete. More...

#include <ObservationModelMapping.h>

Inheritance diagram for ObservationModelMapping:
[legend]

Public Types

typedef
boost::numeric::ublas::matrix
< double > 
Matrix
 

Public Member Functions

virtual ObservationModelMappingClone () const
 Returns a pointer to a copy of this class. More...
 
double Get (Index ja_i, Index suc_s_i, Index jo_i) const
 Returns P(jo|ja,s') More...
 
const MatrixGetMatrixPtr (Index a) const
 Get a pointer to a transition matrix for a particular action. More...
 
 ObservationModelMapping (int nrS=1, int nrJA=1, int nrJO=1)
 default Constructor More...
 
 ObservationModelMapping (const ObservationModelMapping &OM)
 Copy constructor. More...
 
void Set (Index ja_i, Index suc_s_i, Index jo_i, double prob)
 Sets P(o|ja,s') More...
 
 ~ObservationModelMapping ()
 Destructor. More...
 
- Public Member Functions inherited from ObservationModelDiscrete
 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 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 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

std::vector< Matrix * > _m_O
 

Friends

class OGet_ObservationModelMapping
 

Detailed Description

ObservationModelMapping implements an ObservationModelDiscrete.

Uses full matrices.

Member Typedef Documentation

typedef boost::numeric::ublas::matrix<double> ObservationModelMapping::Matrix

Constructor & Destructor Documentation

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

default Constructor

References _m_O.

Referenced by Clone().

ObservationModelMapping::ObservationModelMapping ( const ObservationModelMapping OM)

Copy constructor.

References _m_O.

ObservationModelMapping::~ObservationModelMapping ( )

Destructor.

References _m_O.

Member Function Documentation

virtual ObservationModelMapping* ObservationModelMapping::Clone ( ) const
inlinevirtual

Returns a pointer to a copy of this class.

Implements ObservationModelDiscrete.

References ObservationModelMapping().

double ObservationModelMapping::Get ( Index  ja_i,
Index  suc_s_i,
Index  jo_i 
) const
inlinevirtual

Returns P(jo|ja,s')

Implements ObservationModelDiscreteInterface.

const Matrix* ObservationModelMapping::GetMatrixPtr ( Index  a) const
inline

Get a pointer to a transition matrix for a particular action.

Referenced by AlphaVectorPlanning::Initialize().

void ObservationModelMapping::Set ( Index  ja_i,
Index  suc_s_i,
Index  jo_i,
double  prob 
)
inlinevirtual

Sets P(o|ja,s')

jo_i, Index ja_i, Index suc_s_i, are indices of the joint observation, taken joint action and resulting successor state. prob is the probability. The order of events is ja, s', o, so is the arg. list

Implements ObservationModelDiscreteInterface.

Friends And Related Function Documentation

friend class OGet_ObservationModelMapping
friend

Member Data Documentation

std::vector<Matrix* > ObservationModelMapping::_m_O
private