|
presage 0.8.7
|
#include <dummyPredictor.h>


Public Member Functions | |
| DummyPredictor (Configuration *, ContextTracker *) | |
| ~DummyPredictor () | |
| virtual Prediction | predict (const size_t size, const char **filter) const |
| Generate prediction. | |
| virtual void | learn (const std::vector< std::string > &change) |
Dummy predictor is provided here to show how to implement real predictors.
Definition at line 34 of file dummyPredictor.h.
| DummyPredictor::DummyPredictor | ( | Configuration * | config, |
| ContextTracker * | ct | ||
| ) |
Definition at line 28 of file dummyPredictor.cpp.
| DummyPredictor::~DummyPredictor | ( | ) |
Definition at line 38 of file dummyPredictor.cpp.
| void DummyPredictor::learn | ( | const std::vector< std::string > & | change | ) | [virtual] |
Implements Predictor.
Definition at line 73 of file dummyPredictor.cpp.
References endl().

| Prediction DummyPredictor::predict | ( | const size_t | size, |
| const char ** | filter | ||
| ) | const [virtual] |
Generate prediction.
| size | desired prediction size |
| filter | filter |
Implements Predictor.
Definition at line 41 of file dummyPredictor.cpp.
References Prediction::addSuggestion().

1.7.4