#include <ScoreAccumulator.hpp>
Inheritance diagram for lemur::retrieval::ArrayAccumulator:
Public Member Functions | |
ArrayAccumulator (int maxID) | |
virtual | ~ArrayAccumulator () |
virtual void | reset () |
Reset all entries to zero. | |
virtual bool | findScore (int id, double &score) const |
Find the score value for an id. | |
virtual void | setScore (int id, double score) |
Set the score value of an id, add the id if it doesn't exist. | |
virtual void | incScore (int id, double score) |
Increase the score value of an id, add the id if it doesn't exist. | |
virtual void | startIteration () const |
Iteration support. | |
bool | hasMore () const |
void | nextScore (int &id, double &score) const |
Protected Attributes | |
int | p |
int | sz |
double * | acc |
short * | status |
|
|
|
|
|
Find the score value for an id.
Implements lemur::api::ScoreAccumulator. |
|
Implements lemur::api::ScoreAccumulator. |
|
Increase the score value of an id, add the id if it doesn't exist.
Implements lemur::api::ScoreAccumulator. |
|
Implements lemur::api::ScoreAccumulator. |
|
Reset all entries to zero.
Implements lemur::api::ScoreAccumulator. |
|
Set the score value of an id, add the id if it doesn't exist.
Implements lemur::api::ScoreAccumulator. |
|
Iteration support.
Implements lemur::api::ScoreAccumulator. |
|
|
|
|
|
|
|
|