24 #ifndef PRESAGE_DEJAVUPREDICTOR 25 #define PRESAGE_DEJAVUPREDICTOR 28 #include "../core/dispatcher.h" 51 virtual void learn(
const std::vector<std::string>& change);
60 bool match(
const std::list<std::string>&,
const std::list<std::string>&)
const;
77 #endif // SOOTH_DEJAVUPREDICTOR
void set_memory(const std::string &filename)
DejavuPredictor(Configuration *, ContextTracker *, const char *)
void(DejavuPredictor::* mbr_func_ptr_t)(const std::string &value)
bool match(const std::list< std::string > &, const std::list< std::string > &) const
bool init_memory_trigger(std::list< std::string > &) const
virtual void update(const Observable *variable)
std::map< std::string, mbr_func_ptr_t > dispatch_map
Dispatcher< DejavuPredictor > dispatcher
virtual void learn(const std::vector< std::string > &change)
void set_trigger(const std::string &number)
virtual Prediction predict(const size_t size, const char **filter) const
Generate prediction.
Tracks user interaction and context.
void update_rolling_window(std::list< std::string > &, const std::string &) const
bool init_rolling_window(std::list< std::string > &, std::ifstream &) const