Weather casting with Machine Learning (SVM and SRNN).
Dependencies: EthernetInterface GraphicHandler NTPClient SRNN SVM SensorModule mbed-rtos mbed
Diff: share.hpp
- Revision:
- 2:20ecfe6edd71
- Parent:
- 1:8538381cae81
- Child:
- 3:5add3759e08a
--- a/share.hpp Mon Feb 16 07:53:45 2015 +0000 +++ b/share.hpp Wed Feb 18 15:02:16 2015 +0000 @@ -1,13 +1,28 @@ #ifndef SHARE_H_INCLUDED #define SHARE_H_INCLUDED +#include "mbed.h" + +/* 共通のパラメタ類をマクロで定義 */ + #define PREDICT_LENGTH (3) // 予測系列長 #define PREDICT_INTERVAL_TIME (1 * 60 * 60) // 予測間隔 : 1h -#define LEN_DATA_SEQUENCE (100) // 観測データの履歴長 +#define LEN_DATA_SEQUENCE (50) // 観測データの履歴長 #define NUM_WEATHERS (4) // 気候の種類 #define DIM_SIGNAL (3) // 信号の次元(=センサの数) -#define MCSVM_NUM_SAMPLES (200) // MCSVMのサンプル数 +#define MCSVM_NUM_SAMPLES (120) // MCSVMのサンプル数 + +#define BUF_SIZE (250) // fprintfの時などに使われる文字列バッファの長さ + +#define SEQUENCE_DATA_NAME "/local/SEQ_DAT.CSV" // 系列データのファイル名 +#define PREDICT_DATA_NAME "/local/PRE_DAT.CSV" // 予測データのファイル名 +// 信号のインデックス +typedef enum { + TEMPERATURE = 0, // 気温 + AIR_PRESSURE = 1, // 気圧 + HUMIDITY = 2, // 湿度 +} SIGNAL_ID; // 天候を表す列挙型 typedef enum {