-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlgorithm1.h
More file actions
48 lines (34 loc) · 754 Bytes
/
Algorithm1.h
File metadata and controls
48 lines (34 loc) · 754 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
43
44
45
46
47
48
//
// Created by Saad Ghani on 18/10/2018.
//
#ifndef RA_WORK_ALGORITHM1_H
#define RA_WORK_ALGORITHM1_H
#include "Samplingtree.h"
#include "generateInput.cpp"
class Algorithm1 {
private:
Inputs inputs;
int noOfStates;
int noOfActions;
double * q;
double Theta, Time;
double * v;
double * Epsilon;
double ** PiI;
double * PiISum;
double Beta, Alpha, M;
Samplingtree *** P;
double *iProb;
Samplingtree * iSample;
Samplingtree ** aSample;
double *** PiT;
double ** PiHat;
public:
void initializeAlgorithm(int n, int m, Inputs inp, int T);
void run();
void outputV();
void outputPi();
void outputPiHat();
void clearData();
};
#endif //RA_WORK_ALGORITHM1_H