-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiodata.h
More file actions
64 lines (50 loc) · 1001 Bytes
/
Copy pathiodata.h
File metadata and controls
64 lines (50 loc) · 1001 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef IODATA_H
#define IODATA_H
#include <vector>
#include <cmath>
#include <string>
using namespace std;
class iodata
{
public:
iodata();
double ssrFunc(std::vector<double> id, std::vector<double> od);
double ssrFunc();
double t0,t1;
double DA,DB;
double rd,A0,B0;
class idata
{
public:
double t0,t1;
double DA,DB;
double rd,A0,B0;
double theta0, theta1, theta2;
double T;
idata();
void setData(string str);
std::vector<double> seriesTime();
std::vector<double> time;
std::vector<double> current;
std::vector<double> potention;
void readData(char* filename);
};
class odata
{
public:
odata();
string getPlotData();
string getTitle();
string getData(const char* o);
string getData();
std::vector<double> time;
std::vector<double> current;
std::vector<double> potention;
double ssr;
double DA,DB;
friend class idata;
};
idata id;
odata od;
};
#endif // IODATA_H