MultiAgentDecisionProcess
Release 0.2.1
|
ObservationModelDiscrete represents a discrete observation model. More...
#include <ObservationModelDiscrete.h>
Public Member Functions | |
virtual ObservationModelDiscrete * | Clone () const =0 |
Returns a pointer to a copy of this class. | |
virtual double | Get (Index ja_i, Index suc_s_i, Index jo_i) const =0 |
Returns P(jo|ja,s') | |
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. | |
virtual void | Set (Index ja_i, Index suc_s_i, Index jo_i, double prob)=0 |
Sets P(o|ja,s') | |
std::string | SoftPrint () const |
SoftPrints tabular observation model. | |
virtual | ~ObservationModelDiscrete () |
Destructor. | |
![]() | |
ObservationModel () | |
default Constructor | |
void | Print () const |
virtual | ~ObservationModel () |
Destructor. |
Private Attributes | |
int | _m_nrJointActions |
The number of joint actions. | |
int | _m_nrJointObservations |
The number of joint observations. | |
int | _m_nrStates |
The number of states. |
ObservationModelDiscrete represents a discrete observation model.
Definition at line 38 of file ObservationModelDiscrete.h.
ObservationModelDiscrete::ObservationModelDiscrete | ( | int | nrS = 1 , |
int | nrJA = 1 , |
||
int | nrJO = 1 |
||
) |
Constructor with the dimensions of the observation model.
Definition at line 34 of file ObservationModelDiscrete.cpp.
|
virtual |
Destructor.
Definition at line 44 of file ObservationModelDiscrete.cpp.
|
pure virtual |
Returns a pointer to a copy of this class.
Implements ObservationModel.
Implemented in ObservationModelMappingSparse, and ObservationModelMapping.
|
pure virtual |
Returns P(jo|ja,s')
Implemented in ObservationModelMappingSparse, and ObservationModelMapping.
Referenced by MultiAgentDecisionProcessDiscrete::GetObservationProbability(), SampleJointObservation(), SoftPrint(), and JointBeliefSparse::Update().
Index ObservationModelDiscrete::SampleJointObservation | ( | Index | jaI, |
Index | sucI | ||
) |
Sample a joint observation.
Definition at line 65 of file ObservationModelDiscrete.cpp.
References _m_nrJointObservations, and Get().
Referenced by MultiAgentDecisionProcessDiscrete::SampleJointObservation().
|
pure virtual |
Sets P(o|ja,s')
Index 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
Implemented in ObservationModelMappingSparse, and ObservationModelMapping.
Referenced by TransitionObservationIndependentMADPDiscrete::CreateCentralizedFullModels(), TransitionObservationIndependentMADPDiscrete::CreateCentralizedSparseModels(), and MultiAgentDecisionProcessDiscrete::SetObservationProbability().
|
virtual |
SoftPrints tabular observation model.
Implements ObservationModel.
Definition at line 48 of file ObservationModelDiscrete.cpp.
References _m_nrJointActions, _m_nrJointObservations, _m_nrStates, and Get().
Referenced by MultiAgentDecisionProcessDiscrete::SoftPrint().
|
private |
The number of joint actions.
Definition at line 45 of file ObservationModelDiscrete.h.
Referenced by SoftPrint().
|
private |
The number of joint observations.
Definition at line 47 of file ObservationModelDiscrete.h.
Referenced by SampleJointObservation(), and SoftPrint().
|
private |
The number of states.
Definition at line 43 of file ObservationModelDiscrete.h.
Referenced by SoftPrint().