forked from Conedy/Conedy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlyapunov.h
43 lines (34 loc) · 774 Bytes
/
lyapunov.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
36
37
38
39
40
41
42
43
#ifndef lyapunov_h
#define lyapunov_h lyapunov_h
#include "network.h"
#include <fstream>
struct meanVar {
baseType mean;
baseType var;
};
class realign
{
private:
conedy::network::nodeList *vl;
baseType eps;
ifstream in;
ofstream out;
int counter;
int skip;
public:
realign(string input, string output, conedy::network::nodeList *theList, baseType theEpsilon, int s)
{
in.open(input.c_str());
out.open(output.c_str());
vl = theList;
eps= theEpsilon;
skip = s;
counter = skip;
}
meanVar calculateDist(vector <baseType> &states);
void realignNow ( vector <baseType> &states, baseType eps, meanVar dist);
void realignPeriodically();
void realignWhenDistant();
// void goForIt();
};
#endif