Weather casting with Machine Learning (SVM and SRNN).
Dependencies: EthernetInterface GraphicHandler NTPClient SRNN SVM SensorModule mbed-rtos mbed
main_util.hpp
- Committer:
- yukari_hinata
- Date:
- 2015-02-19
- Revision:
- 5:b61f3f5b0fc8
- Parent:
- 2:20ecfe6edd71
File content as of revision 5:b61f3f5b0fc8:
#ifndef MAIN_UTIL_H_INCLUDED #define MAIN_UTIL_H_INCLUDED #include "main.hpp" // main.cppで書くと冗長なユーティリティ inline time_t get_JST(void) { return (time(NULL) + (9 * 60 * 60)); } extern void check_file_open(FILE*, const char*); // ファイルのオープンチェック.第一引数はファイルポインタ, 第二引数はファイル名 // ホントはdebugだけど, オープン失敗はよく起こるので... extern void truncate_data_file(int); // 系列データの行数をLEN_DATA_SEQUENCEに切り詰める.(先頭から削除) extern void print_status(const char*,...); extern void update_srnn_sample(float*, float*); // サンプルキューの更新. 第一引数にサンプルキュー, 第二引数に新しいサンプル #endif /* MAIN_UTIL_H_INCLUDED */