MultiAgentDecisionProcess
EventObservationModelMapping Class Reference

EventObservationModelMapping implements an ObservationModelDiscrete which depends not only on the resulting state but also on the current state of the system, i.e. P(o(k+1) | s(k), ja(k), s(k+1)) More...

#include <EventObservationModelMapping.h>

Inheritance diagram for EventObservationModelMapping:
[legend]

Public Types

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

Public Member Functions

virtual
EventObservationModelMapping
Clone () const
 Returns a pointer to a copy of this class. More...
 
 EventObservationModelMapping (int nrS=1, int nrJA=1, int nrJO=1)
 default Constructor More...
 
 EventObservationModelMapping (const EventObservationModelMapping &OM)
 Copy constructor. More...
 
double Get (Index ja_i, Index suc_s_i, Index jo_i) const
 Returns P(jo|ja,s') More...
 
double Get (Index s_i, Index ja_i, Index suc_s_i, Index jo_i) const
 
const MatrixGetMatrixPtr (Index a, Index jo_i) const
 
void Set (Index ja_i, Index suc_s_i, Index jo_i, double prob)
 Sets P(o|s,ja,s') More...
 
void Set (Index s_i, Index ja_i, Index suc_s_i, Index jo_i, double prob)
 
 ~EventObservationModelMapping ()
 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
 ObservationModelDiscreteInterface ()
 Constructor with the dimensions of the observation model. More...
 
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< std::vector
< Matrix * > > 
_m_O
 

Friends

class OGet_EventObservationModelMapping
 

Detailed Description

EventObservationModelMapping implements an ObservationModelDiscrete which depends not only on the resulting state but also on the current state of the system, i.e. P(o(k+1) | s(k), ja(k), s(k+1))

Member Typedef Documentation

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

Constructor & Destructor Documentation

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

default Constructor

References _m_O.

Referenced by Clone().

EventObservationModelMapping::EventObservationModelMapping ( const EventObservationModelMapping OM)

Copy constructor.

References _m_O.

EventObservationModelMapping::~EventObservationModelMapping ( )

Destructor.

References _m_O.

Member Function Documentation

virtual EventObservationModelMapping* EventObservationModelMapping::Clone ( ) const
inlinevirtual

Returns a pointer to a copy of this class.

Implements ObservationModelDiscrete.

References EventObservationModelMapping().

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

Returns P(jo|ja,s')

Implements ObservationModelDiscreteInterface.

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

Reimplemented from ObservationModelDiscreteInterface.

const Matrix* EventObservationModelMapping::GetMatrixPtr ( Index  a,
Index  jo_i 
) const
inline
void EventObservationModelMapping::Set ( Index  ja_i,
Index  suc_s_i,
Index  jo_i,
double  prob 
)
inlinevirtual

Sets P(o|s,ja,s')

jo_i, Index s_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 s, ja, s', o, so is the arg. list

Implements ObservationModelDiscreteInterface.

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

Reimplemented from ObservationModelDiscreteInterface.

Friends And Related Function Documentation

friend class OGet_EventObservationModelMapping
friend

Member Data Documentation

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