TarzaNN
TarzaNN neural network simulator
|
00001 #ifndef MONITOR_H_ 00002 #define MONITOR_H_ 00003 00004 #include "Network.h" 00005 #include <vector> 00006 using namespace std; 00007 00009 typedef struct outputLayout { 00011 int layer; 00013 float weight; 00014 } OutputLayout; 00015 00017 class Monitor { 00018 public: 00019 Monitor(Network* n); 00020 virtual ~Monitor(); 00021 00023 void setOutput(vector<OutputLayout> areas); 00025 void setTask(); 00027 void setWTASteps(int steps); 00029 vector<OutputLayout>* getWinners(); 00031 virtual void doneStep(); 00032 00034 void selectWinner(FeaturePlaneAbstract* fp, int selectX, int selectY); 00036 QPoint* getSelectedWinner(); 00037 00039 virtual bool update(); 00041 FeaturePlaneAbstract* winnerPlane; 00043 void resetWinnerPlane(); 00045 int getStep(){return step;} 00047 bool getManualOverwrite(); 00048 00049 00050 protected: 00052 Network* nn; 00054 vector<OutputLayout> winningAreas; 00056 int step,wta_steps; 00058 bool hasTask; 00060 bool manualOverwrite; 00062 QPoint* manualWinner; 00063 }; 00064 #endif /*MONITOR_H_*/