MultiAgentDecisionProcess
Release 0.2.1
|
ObservationModelMappingSparse implements an ObservationModelDiscrete. More...
#include <ObservationModelMappingSparse.h>
Public Types | |
typedef boost::numeric::ublas::compressed_matrix < double > | SparseMatrix |
Public Member Functions | |
virtual ObservationModelMappingSparse * | 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 SparseMatrix * | GetMatrixPtr (Index a) const |
Get a pointer to a transition matrix for a particular action. | |
ObservationModelMappingSparse (int nrS=1, int nrJA=1, int nrJO=1) | |
default Constructor | |
ObservationModelMappingSparse (const ObservationModelMappingSparse &OM) | |
Copy constructor. | |
void | Set (Index ja_i, Index suc_s_i, Index jo_i, double prob) |
Sets P(o|ja,s') | |
~ObservationModelMappingSparse () | |
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< SparseMatrix * > | _m_O |
Friends | |
class | OGet_ObservationModelMappingSparse |
ObservationModelMappingSparse implements an ObservationModelDiscrete.
Uses sparse matrices.
Definition at line 41 of file ObservationModelMappingSparse.h.
typedef boost::numeric::ublas::compressed_matrix<double> ObservationModelMappingSparse::SparseMatrix |
Definition at line 48 of file ObservationModelMappingSparse.h.
ObservationModelMappingSparse::ObservationModelMappingSparse | ( | int | nrS = 1 , |
int | nrJA = 1 , |
||
int | nrJO = 1 |
||
) |
default Constructor
Definition at line 32 of file ObservationModelMappingSparse.cpp.
References _m_O.
Referenced by Clone().
ObservationModelMappingSparse::ObservationModelMappingSparse | ( | const ObservationModelMappingSparse & | OM | ) |
ObservationModelMappingSparse::~ObservationModelMappingSparse | ( | ) |
|
inlinevirtual |
Returns a pointer to a copy of this class.
Implements ObservationModelDiscrete.
Definition at line 91 of file ObservationModelMappingSparse.h.
References ObservationModelMappingSparse().
|
inlinevirtual |
Returns P(jo|ja,s')
Implements ObservationModelDiscrete.
Definition at line 69 of file ObservationModelMappingSparse.h.
References _m_O.
|
inline |
Get a pointer to a transition matrix for a particular action.
Definition at line 87 of file ObservationModelMappingSparse.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 79 of file ObservationModelMappingSparse.h.
References _m_O, prob, and Globals::PROB_PRECISION.
|
friend |
Definition at line 94 of file ObservationModelMappingSparse.h.
|
private |
Definition at line 54 of file ObservationModelMappingSparse.h.
Referenced by Get(), GetMatrixPtr(), ObservationModelMappingSparse(), OGet_ObservationModelMappingSparse::OGet_ObservationModelMappingSparse(), Set(), and ~ObservationModelMappingSparse().