#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 24 of file Majority.h.
References Majority< T >::n_, relativeConstraints::value, and Majority< T >::votes_.
Referenced by MatacqProducer::getCalibTriggerType(), LaserSorter::getDetailedTriggerType(), and counter.Counter::register().
Collects event
value | event |
Definition at line 28 of file Majority.h.
References Majority< T >::n_, relativeConstraints::value, and Majority< T >::votes_.
Referenced by counter.Counter::register().
Definition at line 29 of file Majority.h.
References m, Majority< T >::n_, and Majority< T >::votes_.
Referenced by MatacqProducer::getCalibTriggerType(), and LaserSorter::getDetailedTriggerType().
Result of majority decision
proba. | If not null, filled with the frequency of the selected value. |
Definition at line 38 of file Majority.h.
References m, Majority< T >::n_, and Majority< T >::votes_.
Definition at line 50 of file Majority.h.
Referenced by Majority< T >::add(), and Majority< T >::result().
Definition at line 49 of file Majority.h.
Referenced by Majority< T >::add(), and Majority< T >::result().