MultiAgentDecisionProcess
|
TransitionModelMappingSparse implements a TransitionModelDiscrete. More...
#include <TransitionModelMappingSparse.h>
Public Types | |
typedef boost::numeric::ublas::compressed_matrix < double > | SparseMatrix |
Public Member Functions | |
virtual TransitionModelMappingSparse * | Clone () const |
Returns a pointer to a copy of this class. More... | |
double | Get (Index sI, Index jaI, Index sucSI) const |
Returns P(s'|s,ja). More... | |
const SparseMatrix * | GetMatrixPtr (Index a) const |
Get a pointer to a transition matrix for a particular action. More... | |
void | Set (Index sI, Index jaI, Index sucSI, double prob) |
Sets P(s'|s,ja) More... | |
TransitionModelMappingSparse (int nrS=1, int nrJA=1) | |
default Constructor More... | |
TransitionModelMappingSparse (const TransitionModelMappingSparse &TM) | |
Copy constructor. More... | |
~TransitionModelMappingSparse () | |
Destructor. More... | |
Public Member Functions inherited from TransitionModelDiscrete | |
Index | SampleSuccessorState (Index sI, Index jaI) |
Sample a successor state. More... | |
std::string | SoftPrint () const |
SoftPrints tabular transition model. More... | |
TransitionModelDiscrete (int nrS=1, int nrJA=1) | |
Constructor with the dimensions of the transition model. More... | |
virtual | ~TransitionModelDiscrete () |
Public Member Functions inherited from TransitionModelDiscreteInterface | |
TransitionModelDiscreteInterface () | |
Constructor. More... | |
virtual | ~TransitionModelDiscreteInterface () |
Public Member Functions inherited from TransitionModel | |
void | Print () const |
TransitionModel () | |
default Constructor More... | |
virtual | ~TransitionModel () |
Destructor. More... | |
Private Attributes | |
std::vector< SparseMatrix * > | _m_T |
Friends | |
class | TGet_TransitionModelMappingSparse |
TransitionModelMappingSparse implements a TransitionModelDiscrete.
Uses sparse matrices.
typedef boost::numeric::ublas::compressed_matrix<double> TransitionModelMappingSparse::SparseMatrix |
TransitionModelMappingSparse::TransitionModelMappingSparse | ( | int | nrS = 1 , |
int | nrJA = 1 |
||
) |
TransitionModelMappingSparse::TransitionModelMappingSparse | ( | const TransitionModelMappingSparse & | TM | ) |
Copy constructor.
References _m_T.
TransitionModelMappingSparse::~TransitionModelMappingSparse | ( | ) |
Destructor.
References _m_T.
|
inlinevirtual |
Returns a pointer to a copy of this class.
Implements TransitionModelDiscrete.
References TransitionModelMappingSparse().
Returns P(s'|s,ja).
Implements TransitionModelDiscreteInterface.
|
inline |
Get a pointer to a transition matrix for a particular action.
Referenced by TransitionObservationIndependentMADPDiscrete::CreateCentralizedSparseTransitionModel(), AlphaVectorPlanning::Initialize(), and MDPValueIteration::Plan().
|
inlinevirtual |
Sets P(s'|s,ja)
sI, jaI, sucSI, are indices of the state, taken joint action and resulting successor state. prob is the probability. The order of events is s, ja, s', so is the arg. list
Implements TransitionModelDiscreteInterface.
References Globals::PROB_PRECISION.
|
friend |
|
private |