|
presage 0.8.7
|
#include <combiner.h>

Public Member Functions | |
| Combiner () | |
| virtual | ~Combiner () |
| virtual Prediction | combine (const std::vector< Prediction > &)=0 |
Protected Member Functions | |
| virtual Prediction | filter (const Prediction &prediction) const |
Combiner interface
A combiner takes one or more predictions and combines them into a single prediction.
Definition at line 40 of file combiner.h.
| Combiner::Combiner | ( | ) |
Definition at line 30 of file combiner.cpp.
| Combiner::~Combiner | ( | ) | [virtual] |
Definition at line 35 of file combiner.cpp.
| virtual Prediction Combiner::combine | ( | const std::vector< Prediction > & | ) | [pure virtual] |
Implemented in MeritocracyCombiner.
Referenced by PredictorActivator::predict().

| Prediction Combiner::filter | ( | const Prediction & | prediction | ) | const [protected, virtual] |
Definition at line 40 of file combiner.cpp.
References Prediction::addSuggestion(), Suggestion::getProbability(), Prediction::getSuggestion(), Suggestion::getWord(), Suggestion::MAX_PROBABILITY, Suggestion::setProbability(), and Prediction::size().
Referenced by MeritocracyCombiner::combine().


1.7.4