-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProcess.h
35 lines (29 loc) · 908 Bytes
/
Process.h
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
//
// Created by Коля on 2019-06-30.
//
#ifndef STOCHASTICPROCESSESLIB_PROCESS_H
#define STOCHASTICPROCESSESLIB_PROCESS_H
#include <vector>
struct ParametrsStruct{
double lambda, tau;
int t, T; /*Параметр распределения, начальное время, конечное время*/
};
class Process {
public:
Process() {}; /*базовый конструктор*/
Process(ParametrsStruct parametrsStruct){
this->lambda = parametrsStruct.lambda;
this->t = parametrsStruct.t;
this->T = parametrsStruct.T;
this->tau=parametrsStruct.tau;
}
~Process(){};
virtual double probabilityPoisson(int k, double deltaT) = 0;
int yesOrNo(double probability);
void fileOutPut(std::vector<int> distribution);
void runProcess();
protected:
double lambda, tau;
int t, T;
};
#endif //STOCHASTICPROCESSESLIB_PROCESS_H