-
Notifications
You must be signed in to change notification settings - Fork 0
/
rossler.h
47 lines (36 loc) · 997 Bytes
/
rossler.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
44
45
46
47
#ifndef ROSSLER_H
#define ROSSLER_H
#include<vector>
using namespace std;
class rossler{
public:
rossler(double aa, double bb,double cc, double dd,
double sstep, double ttf);
vector<double>* pyragas();
bool attractor();
int areEqual(double a[4][30], double b[4][30]);
int isPeriodic;
//mutators
void setParameters(double *params);
void setControlWeight(double c);
void setPeriod(double T);
void setInitialConditions(double *ic);
void setTransientTime(double tt);
void setFinalTime(double ft);
void setStep(double s);
vector<double>* get_ts2();
private:
//parameters
double a,b,c,d;
//parameter of possible control
double C;
double step,finalTime, transientTime;
double period, sampleRating;
double *err;
double *pos;
vector<double> *timeSeries;
vector<double> *timeSeries2;
};
int equations(double t, const double y[], double f[],
void *params);
#endif