presage  0.8.7
Public Member Functions
DummyPredictor Class Reference

#include <dummyPredictor.h>

Inheritance diagram for DummyPredictor:
Inheritance graph
[legend]
Collaboration diagram for DummyPredictor:
Collaboration graph
[legend]

List of all members.

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)

Detailed Description

Dummy predictor is provided here to show how to implement real predictors.

Definition at line 34 of file dummyPredictor.h.


Constructor & Destructor Documentation

Definition at line 28 of file dummyPredictor.cpp.

Definition at line 38 of file dummyPredictor.cpp.


Member Function Documentation

void DummyPredictor::learn ( const std::vector< std::string > &  change) [virtual]

Implements Predictor.

Definition at line 73 of file dummyPredictor.cpp.

References endl().

Here is the call graph for this function:

Prediction DummyPredictor::predict ( const size_t  size,
const char **  filter 
) const [virtual]

Generate prediction.

Parameters:
sizedesired prediction size
filterfilter

Implements Predictor.

Definition at line 41 of file dummyPredictor.cpp.

References Prediction::addSuggestion().

Here is the call graph for this function:


The documentation for this class was generated from the following files: