-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
66 lines (54 loc) · 2.03 KB
/
main.cpp
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
#include "lib.h"
using namespace std;
int main(int argc,char *argv[])
{
double epsilon;
srand( time( NULL ) );
if(argv[1])
epsilon = atof(argv[1]);
else
epsilon = 0.01;
/*
generateData();
vector<double> dataFromFile = getData("dane1.txt");
// int StreamSize = getStreamSize(fileName);
vector< vector<int> > pixels = getPixels(dataFromFile,epsilon);
vector<double> lines = getLines(pixels);
//drawRecursiveDiagram(dataFromFile, epsilon);
vector<double> histogram = getHistogram(lines);
cout<<"Entropia: "<<getEntropy(histogram)<<endl;
cout<<"Lines: "<<int(lines.size())<<endl;
//logisticMap(epsilon);
//0.63 , 4.82 , 4.91 - uporzadkowanie , 2.235
drawRecursiveDiagram(dataFromFile, epsilon);
//vector <double> getNeuronDeviation(int N, double g, double time, double timeStep )
//void drawEntropy(int N, double time, double timeStep, double gStart, double gStop, double gStep, double epsilon)
*/
//drawEntropy(100, 24000, 1, 0, 5, 0.02,epsilon);
//drawReturnsMap(2.22);
double g = 3.24;
vector <double> neuronDeviationData = getNeuronDeviation(100, g , 26400, 0,24, 1);
vector <double> normalizedNeuronDeviationData = normalizeData(neuronDeviationData);
drawRecursiveDiagram(normalizedNeuronDeviationData, epsilon);
drawReturnsMapFromData(neuronDeviationData,1);
writeToFile(neuronDeviationData);
vector< vector<int> > pixels = getPixels(neuronDeviationData,epsilon);
vector<double> lines = getLines(pixels);
vector<double> histogram = getHistogram(lines);
cout<<"Entropia: "<<getEntropy(histogram)<<" g: "<<g<<endl;
/*
double g = 0.83;
vector <double> neuronDeviationData = getNeuronDeviation(100, g , 26400, 0,24, 1);
generateData();
vector <double> Data = getData("dane1.txt");
writeToFile(Data);
drawRecursiveDiagram(Data, epsilon);
drawReturnsMapFromData(Data,1);
vector< vector<int> > pixels = getPixels(Data,epsilon);
vector<double> lines = getLines(pixels);
vector<double> histogram = getHistogram(lines);
cout<<"Entropia: "<<getEntropy(histogram)<<" g: "<<g<<endl;
logisticMap(0.01);
*/
return( 0 );
}