MultiAgentDecisionProcess
Release 0.2.1
|
ObservationModelMapping implements an ObservationModelDiscrete. More...
#include <ObservationModelMapping.h>
Public Types | |
typedef boost::numeric::ublas::matrix < double > | Matrix |
Public Member Functions | |
virtual ObservationModelMapping * | Clone () const |
Returns a pointer to a copy of this class. | |
double | Get (Index ja_i, Index suc_s_i, Index jo_i) const |
Returns P(jo|ja,s') | |
const Matrix * | GetMatrixPtr (Index a) const |
Get a pointer to a transition matrix for a particular action. | |
ObservationModelMapping (int nrS=1, int nrJA=1, int nrJO=1) | |
default Constructor | |
ObservationModelMapping (const ObservationModelMapping &OM) | |
Copy constructor. | |
void | Set (Index ja_i, Index suc_s_i, Index jo_i, double prob) |
Sets P(o|ja,s') | |
~ObservationModelMapping () | |
Destructor. | |
![]() | |
ObservationModelDiscrete (int nrS=1, int nrJA=1, int nrJO=1) | |
Constructor with the dimensions of the observation model. | |
Index | SampleJointObservation (Index jaI, Index sucI) |
Sample a joint observation. | |
std::string | SoftPrint () const |
SoftPrints tabular observation model. | |
virtual | ~ObservationModelDiscrete () |
Destructor. | |
![]() | |
ObservationModel () | |
default Constructor | |
void | Print () const |
virtual | ~ObservationModel () |
Destructor. |
Private Attributes | |
std::vector< Matrix * > | _m_O |
Friends | |
class | OGet_ObservationModelMapping |
ObservationModelMapping implements an ObservationModelDiscrete.
Uses full matrices.
Definition at line 41 of file ObservationModelMapping.h.
typedef boost::numeric::ublas::matrix<double> ObservationModelMapping::Matrix |
Definition at line 46 of file ObservationModelMapping.h.
ObservationModelMapping::ObservationModelMapping | ( | int | nrS = 1 , |
int | nrJA = 1 , |
||
int | nrJO = 1 |
||
) |
default Constructor
Definition at line 32 of file ObservationModelMapping.cpp.
References _m_O.
Referenced by Clone().
ObservationModelMapping::ObservationModelMapping | ( | const ObservationModelMapping & | OM | ) |
ObservationModelMapping::~ObservationModelMapping | ( | ) |
|
inlinevirtual |
Returns a pointer to a copy of this class.
Implements ObservationModelDiscrete.
Definition at line 83 of file ObservationModelMapping.h.
References ObservationModelMapping().
|
inlinevirtual |
Returns P(jo|ja,s')
Implements ObservationModelDiscrete.
Definition at line 65 of file ObservationModelMapping.h.
References _m_O.
|
inline |
Get a pointer to a transition matrix for a particular action.
Definition at line 79 of file ObservationModelMapping.h.
References _m_O.
Referenced by AlphaVectorPlanning::Initialize().
|
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 ObservationModelDiscrete.
Definition at line 75 of file ObservationModelMapping.h.
|
friend |
Definition at line 86 of file ObservationModelMapping.h.
|
private |
Definition at line 50 of file ObservationModelMapping.h.
Referenced by Get(), GetMatrixPtr(), ObservationModelMapping(), OGet_ObservationModelMapping::OGet_ObservationModelMapping(), Set(), and ~ObservationModelMapping().