19 #ifndef INCLUDED_VIEW2DH
20 #define INCLUDED_VIEW2DH
24 #include "algo/neuralnetwork.h"
25 #include "algo/corpus.h"
26 #include "gui/viewport.h"
30 #include <QPaintEvent>
36 const int VIEW_OUTPUT_WIDTH = 700;
37 const int VIEW_OUTPUT_HEIGHT = 500;
38 const char POINT_0_PATH[16] =
"img/point-0.png";
39 const char POINT_1_PATH[16] =
"img/point-1.png";
40 const float CORPUS_EPSILON = 0.0001;
41 const int MAX_WIDTH_HISTORY = 2000;
42 const int TIME_BETWEEN_TWO_LABEL_UPDATES = 500;
44 void plotHistory(
double* history,
int size,
int corpusSize);
52 View2D(QWidget *parent = 0);
55 void renderToImage(std::string fileName, std::string format =
"PNG",
56 int w = VIEW_OUTPUT_WIDTH,
int h = VIEW_OUTPUT_HEIGHT);
127 std::stack<Viewport> mZoomHistory;