![]() |
MineLink
|
Abstracts a function to perform statistical mode. More...
#include <blocksel.h>
Public Member Functions | |
SelectionMajor (const string &column_to_majorize) | |
Defines the attribute column to used. More... | |
const string | ColumnToMajorize () const |
Retrieves the name of the attribute column to be used. | |
virtual double | Eval (const delphos::BlockSelection &bsel) const |
Evaluates the statistical mode over the given selection. More... | |
![]() | |
virtual | ~SelectionFunctor () |
Destroys the selection functor. | |
Abstracts a function to perform statistical mode.
delphos::SelectionMajor::SelectionMajor | ( | const string & | column_to_majorize | ) |
Defines the attribute column to used.
column_to_majorize | The name of the attribute column from wich the most common value is computed. |
|
virtual |
Evaluates the statistical mode over the given selection.
bsel | The BlockSelection instance to be used. |
Zero is returned only if it is the value for all the blocks in the given selection, this is, in any other case zero values are ommited.
Implements delphos::SelectionFunctor.