Weather casting with Machine Learning (SVM and SRNN).

Dependencies:   EthernetInterface GraphicHandler NTPClient SRNN SVM SensorModule mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main_util.hpp Source File

main_util.hpp

00001 #ifndef MAIN_UTIL_H_INCLUDED
00002 #define MAIN_UTIL_H_INCLUDED
00003 
00004 #include "main.hpp"
00005 
00006 // main.cppで書くと冗長なユーティリティ
00007 
00008 inline time_t get_JST(void) {
00009     return (time(NULL) + (9 * 60 * 60));
00010 }
00011 
00012 extern void check_file_open(FILE*, const char*);  // ファイルのオープンチェック.第一引数はファイルポインタ, 第二引数はファイル名
00013                                                   // ホントはdebugだけど, オープン失敗はよく起こるので...  
00014 extern void truncate_data_file(int);              // 系列データの行数をLEN_DATA_SEQUENCEに切り詰める.(先頭から削除)
00015 extern void print_status(const char*,...);
00016 extern void update_srnn_sample(float*, float*);   // サンプルキューの更新. 第一引数にサンプルキュー, 第二引数に新しいサンプル
00017 
00018 #endif /* MAIN_UTIL_H_INCLUDED */