Weather casting with Machine Learning (SVM and SRNN).
Dependencies: EthernetInterface GraphicHandler NTPClient SRNN SVM SensorModule mbed-rtos mbed
Diff: main.hpp
- Revision:
- 0:f6cdb984f638
- Child:
- 1:8538381cae81
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.hpp Sun Feb 15 09:28:23 2015 +0000 @@ -0,0 +1,33 @@ +#ifndef MAIN_H_INCLUDED +#define MAIN_H_INCLUDED + +#include "mbed.h" +#include "rtos.h" + +#include "share.hpp" +#include "setup.hpp" + +#include "MCSVM.hpp" +#include "SRNN.hpp" +#include "SensorModule.hpp" +#include "GraphicHandler.hpp" + +#include "./debug/debug.hpp" + +#define PREDICT_LENGTH (3) // 予測系列長 +#define PREDICT_INTERVAL_TIME (1 * 60 * 60) // 予測間隔 : 1h +#define LEN_DATA_SEQUENCE (100) // 観測データの履歴長 +#define NUM_WEATHERS (4) // 気候の種類 +#define DIM_SIGNAL (3) // 信号の次元(=センサの数) +#define MCSVM_NUM_SAMPLES (200) // MCSVMのサンプル数 + +// 時間(global) +extern time_t global_time; // 現在時刻 +extern Mutex time_mutex; // 時間のMutex +// Pointer to Class instance (global) +extern SRNN *srnn; +extern MCSVM *mcsvm; +extern SensorModule *sm; +extern GraphicHandler *gh; + +#endif /* MAIN_H_INCLUDED */ \ No newline at end of file