MultiAgentDecisionProcess
|
EventObservationModelMappingSparse implements an ObservationModelDiscrete. More...
#include <EventObservationModelMappingSparse.h>
Public Types | |
typedef boost::numeric::ublas::compressed_matrix < double > | SparseMatrix |
Public Member Functions | |
virtual EventObservationModelMappingSparse * | Clone () const |
Returns a pointer to a copy of this class. More... | |
EventObservationModelMappingSparse (int nrS=1, int nrJA=1, int nrJO=1) | |
default Constructor More... | |
EventObservationModelMappingSparse (const EventObservationModelMappingSparse &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 SparseMatrix * | GetMatrixPtr (Index a, Index jo_i) const |
Get a pointer to a transition matrix for a particular action / observation pair. More... | |
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) |
~EventObservationModelMappingSparse () | |
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 < SparseMatrix * > > | _m_O |
Friends | |
class | OGet_EventObservationModelMappingSparse |
EventObservationModelMappingSparse implements an ObservationModelDiscrete.
Uses sparse matrices.
typedef boost::numeric::ublas::compressed_matrix<double> EventObservationModelMappingSparse::SparseMatrix |
EventObservationModelMappingSparse::EventObservationModelMappingSparse | ( | int | nrS = 1 , |
int | nrJA = 1 , |
||
int | nrJO = 1 |
||
) |
EventObservationModelMappingSparse::EventObservationModelMappingSparse | ( | const EventObservationModelMappingSparse & | OM | ) |
Copy constructor.
References _m_O.
EventObservationModelMappingSparse::~EventObservationModelMappingSparse | ( | ) |
Destructor.
References _m_O.
|
inlinevirtual |
Returns a pointer to a copy of this class.
Implements ObservationModelDiscrete.
References EventObservationModelMappingSparse().
|
inlinevirtual |
Returns P(jo|ja,s')
Implements ObservationModelDiscreteInterface.
|
inlinevirtual |
Reimplemented from ObservationModelDiscreteInterface.
|
inline |
Get a pointer to a transition matrix for a particular action / observation pair.
Referenced by AlphaVectorPlanning::Initialize().
|
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.
|
inlinevirtual |
Reimplemented from ObservationModelDiscreteInterface.
References Globals::PROB_PRECISION.
|
friend |
|
private |