#include <Majority.h>
Public Member Functions | |
void | add (const T &value) |
void | add (const T &value) |
Majority () | |
Majority () | |
T | result (double *proba) const |
T | result (double *proba) const |
virtual | ~Majority () |
virtual | ~Majority () |
Private Attributes | |
double | n_ |
std::map< T, double > | votes_ |
Utility class to take a decision on majority based. Used by MatacqProducer.
Definition at line 12 of file Majority.h.
Definition at line 23 of file Majority.h.
References Majority< T >::n_, relativeConstraints::value, and Majority< T >::votes_.
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
Collects event
value | event |
Definition at line 27 of file Majority.h.
References Majority< T >::n_, relativeConstraints::value, and Majority< T >::votes_.
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
Definition at line 28 of file Majority.h.
References visualization-live-secondInstance_cfg::m, Majority< T >::n_, and Majority< T >::votes_.
Result of majority decision
proba. | If not null, filled with the frequency of the selected value. |
Definition at line 37 of file Majority.h.
References visualization-live-secondInstance_cfg::m, Majority< T >::n_, and Majority< T >::votes_.
Definition at line 47 of file Majority.h.
Referenced by Majority< T >::add(), and Majority< T >::result().
Definition at line 46 of file Majority.h.
Referenced by Majority< T >::add(), and Majority< T >::result().