Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef STATE_H
00017 #define STATE_H
00018
00019 #include <string>
00020 #include <fstream>
00021
00025 template <class observation_type>
00026 class state
00027 {
00028 public:
00029 virtual ~state () {};
00042 virtual double predict (const observation_type &observation, const double variance_scale = 1.0) = 0;
00043
00050 virtual void show (const double gray_level = 0.5) const = 0;
00051
00058 virtual void save (const std::string filename) const = 0;
00059
00066 virtual void save (std::ofstream &file) const = 0;
00067
00074 void write_to_log (std::ofstream &file) const
00075 {
00076
00077
00078 };
00079 };
00080
00081 #endif // STATE_H
00082