MineLink
 All Data Structures Functions Variables Pages
delphos::SelectionMajor Class Reference

Abstracts a function to perform statistical mode. More...

#include <blocksel.h>

Inheritance diagram for delphos::SelectionMajor:
Inheritance graph
Collaboration diagram for delphos::SelectionMajor:
Collaboration graph

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...
 
- Public Member Functions inherited from delphos::SelectionFunctor
virtual ~SelectionFunctor ()
 Destroys the selection functor.
 

Detailed Description

Abstracts a function to perform statistical mode.

Constructor & Destructor Documentation

delphos::SelectionMajor::SelectionMajor ( const string &  column_to_majorize)

Defines the attribute column to used.

Parameters
column_to_majorizeThe name of the attribute column from wich the most common value is computed.

Member Function Documentation

double delphos::SelectionMajor::Eval ( const delphos::BlockSelection bsel) const
virtual

Evaluates the statistical mode over the given selection.

Parameters
bselThe BlockSelection instance to be used.
Returns
The most common value of the attribute column.

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.


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