MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
ObservationModelMapping.cpp
Go to the documentation of this file.
1
28
#include "
ObservationModelMapping.h
"
29
30
using namespace
std;
31
32
ObservationModelMapping::ObservationModelMapping
(
int
nrS,
int
nrJA,
33
int
nrJO) :
34
ObservationModelDiscrete
(nrS, nrJA, nrJO)
35
{
36
Matrix
*O;
37
for
(
int
a=0;a!=nrJA;++a)
38
{
39
O=
new
Matrix
(nrS,nrJO);
40
O->clear();
41
_m_O
.push_back(O);
42
}
43
}
44
45
ObservationModelMapping::
46
ObservationModelMapping
(
const
ObservationModelMapping
& OM) :
47
ObservationModelDiscrete
(OM)
48
{
49
Matrix
*O;
50
for
(
unsigned
int
a=0;a!=OM.
_m_O
.size();++a)
51
{
52
O=
new
Matrix
(*OM.
_m_O
[a]);
53
_m_O
.push_back(O);
54
}
55
}
56
57
ObservationModelMapping::~ObservationModelMapping
()
58
{
59
for
(vector<Matrix*>::iterator it=
_m_O
.begin();
60
it!=
_m_O
.end(); ++it)
61
delete
(*it);
62
_m_O
.clear();
63
}
src
base
ObservationModelMapping.cpp
Generated on Mon Sep 23 2013 14:50:05 for MultiAgentDecisionProcess by
1.8.1.2