Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[18a63e]: src / modules / msm / msm.cc Maximize Restore History

Download this file

msm.cc    43 lines (29 with data), 676 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <module/Module.h>
#include <distributions/DMState.h>
#include <functions/Mexp.h>
using std::vector;
namespace jags {
namespace msm {
class MSMModule : public Module {
public:
MSMModule();
~MSMModule();
};
MSMModule::MSMModule()
: Module("msm")
{
insert(new DMState);
insert(new Mexp);
}
MSMModule::~MSMModule() {
vector<Distribution*> const &dvec = distributions();
for (unsigned int i = 0; i < dvec.size(); ++i) {
delete dvec[i];
}
vector<Function*> const &fvec = functions();
for (unsigned int i = 0; i < fvec.size(); ++i) {
delete fvec[i];
}
}
}}
jags::msm::MSMModule _msm_module;