presage  0.8.7
Public Member Functions | Protected Member Functions
Combiner Class Reference

#include <combiner.h>

Inheritance diagram for Combiner:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Combiner ()
virtual ~Combiner ()
virtual Prediction combine (const std::vector< Prediction > &)=0

Protected Member Functions

virtual Prediction filter (const Prediction &prediction) const

Detailed Description

Combiner interface

A combiner takes one or more predictions and combines them into a single prediction.

Definition at line 40 of file combiner.h.


Constructor & Destructor Documentation

Definition at line 30 of file combiner.cpp.

Combiner::~Combiner ( ) [virtual]

Definition at line 35 of file combiner.cpp.


Member Function Documentation

virtual Prediction Combiner::combine ( const std::vector< Prediction > &  ) [pure virtual]

Implemented in MeritocracyCombiner.

Referenced by PredictorActivator::predict().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


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