NeuralNetwork
 Tudo Estruturas de dados Funções Páginas
mainwindow.h
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3 
4 #include <QMainWindow>
5 #include "renderarea.h"
6 #include "ui_mainwindow.h"
7 #include "dialogabout.h"
8 #include "network.h"
9 #include "logwindow.h"
10 #include <ctime>
11 #include <iostream>
12 #include <vector>
13 
14 using namespace std;
15 
16 namespace Ui {
17 class MainWindow;
18 }
19 
20 class MainWindow : public QMainWindow
21 {
22  Q_OBJECT
23 
24 public:
25  explicit MainWindow(QWidget *parent = 0);
26  ~MainWindow();
27  Ui::MainWindow *ui;
28 
29  static vector<double> myVector;
30  static vector<QString> myLine;
31 private slots:
32  void drawMatrix();
33  void clearMatrix();
34  void learnPattern();
35  void recognizePattern();
36 
37  void on_actionAbout_triggered();
38  void on_actionLogs_triggered();
39 
40 private:
41  RenderArea *myRenderArea;
42  Network myNetwork;
43  LogWindow *myLogWindow;
44  vector< vector<double> > myOutputs;
45 };
46 
47 #endif // MAINWINDOW_H