![]() |
MineLink
|
Abstract class to define methods for the reblocking utility. More...
#include <reblock.h>
Public Member Functions | |
Reblocker (delphos::BlockModel &bm) | |
Creates a new reblocker associated to a given block model. More... | |
virtual | ~Reblocker () |
Destructor. | |
void | AddAggregatedColumn (const string &column, delphos::SelectionFunctor *f) |
Adds a column to be created in the resulting block model. More... | |
void | AddSummationColumn (const string &column, const string &newcolumn) |
Adds a column to be created in the resulting block model. More... | |
void | AddMajorizationColumn (const string &column, const string &newcolumn) |
Adds a column to be created in the resulting block model. More... | |
void | AddAvgColumn (const string &sumcolumn, const string &newcolumn) |
Adds a column to be created in the resulting block model. More... | |
void | AddAvgColumn (const string &sumcolumn, const string &weightcolumn, const string &newcolumn) |
Adds a column to be created in the resulting block model. More... | |
void | AddMaxColumn (const string &column, const string &newcolumn) |
Adds a column to be created in the resulting block model. More... | |
void | AddMinColumn (const string &column, const string &newcolumn) |
Adds a column to be created in the resulting block model. More... | |
vector< string > | AggregatedColumnNames () const |
Returns the names of the columns to be created in the new block model. | |
const delphos::SelectionFunctor *const | AggregatedColumnFunctor (const string &column_name) const |
Retrieves the function to be used for creating a certain attribute in the aggregated block model. More... | |
const unsigned int | NumOfAggregatedColumns () const |
Reports the number of columns to be created in the new block model. | |
![]() | |
BlockModelEntity (delphos::BlockModel &bm) | |
Creates a new block instance associated to a given block model. More... | |
delphos::BlockModel & | GetBlockModel () |
Retrieves the block model to which the entity is associated. More... | |
const delphos::BlockModel & | GetBlockModel () const |
Retrieves the block model to which the entity is associated. More... | |
Abstract class to define methods for the reblocking utility.
This class allows to create new block models by aggregating blocks of an existin one into larger blocks.
The class also calculates corresponding attributes starting from the attributes in the original block model. The attributes to be calculated can be general and are specified by the user.
delphos::Reblocker::Reblocker | ( | delphos::BlockModel & | bm | ) |
Creates a new reblocker associated to a given block model.
bm | The block model. |
void delphos::Reblocker::AddAggregatedColumn | ( | const string & | column, |
delphos::SelectionFunctor * | f | ||
) |
Adds a column to be created in the resulting block model.
column | Name of the column to be added in the aggregated block model. |
f | Function that calculates the value of the resulting attribute. |
This method registers a new column to be added to the resulting block model. The column is created during the reblocking procedure. The f function provides, for each group of blocks (given by a set of blocks corresponding to the ones in a fixed aggregated block of the new block model), the corresponding value for the attribute being calculated.
void delphos::Reblocker::AddAvgColumn | ( | const string & | sumcolumn, |
const string & | newcolumn | ||
) |
Adds a column to be created in the resulting block model.
sumcolumn | Name of the column to be averaged in the aggregated block model. |
newcolumn | Name of the column to be added in the aggregated block model. |
This method registers a new column to be added to the resulting block model. The column is created during the reblocking procedure.
void delphos::Reblocker::AddAvgColumn | ( | const string & | sumcolumn, |
const string & | weightcolumn, | ||
const string & | newcolumn | ||
) |
Adds a column to be created in the resulting block model.
sumcolumn | Name of the column to be averaged in the aggregated block model. |
newcolumn | Name of the column to be added in the aggregated block model. |
weightcolumn | Name of the column to be added in the aggregated block mode. |
This method registers a new column to be added to the resulting block model. The column is created during the reblocking procedure.
void delphos::Reblocker::AddMajorizationColumn | ( | const string & | column, |
const string & | newcolumn | ||
) |
Adds a column to be created in the resulting block model.
column | Name of the column to be majorized in the aggregated block model. |
newcolumn | Name of the column to be added in the aggregated block model. |
This method registers a new column to be added to the resulting block model. The column is created during the reblocking procedure.
void delphos::Reblocker::AddMaxColumn | ( | const string & | column, |
const string & | newcolumn | ||
) |
Adds a column to be created in the resulting block model.
column | Name of the column where the maximum is extracted. |
newcolumn | Name of the column to be added in the aggregated block model. |
This method registers a new column to be added to the resulting block model. The column is created during the reblocking procedure.
void delphos::Reblocker::AddMinColumn | ( | const string & | column, |
const string & | newcolumn | ||
) |
Adds a column to be created in the resulting block model.
column | Name of the column where the minimum is extracted. |
newcolumn | Name of the column to be added in the aggregated block model. |
This method registers a new column to be added to the resulting block model. The column is created during the reblocking procedure.
void delphos::Reblocker::AddSummationColumn | ( | const string & | column, |
const string & | newcolumn | ||
) |
Adds a column to be created in the resulting block model.
column | Name of the column to be summed in the aggregated block model. |
newcolumn | Name of the column to be added in the aggregated block model. |
This method registers a new column to be added to the resulting block model. The column is created during the reblocking procedure.
const SelectionFunctor *const delphos::Reblocker::AggregatedColumnFunctor | ( | const string & | column_name | ) | const |
Retrieves the function to be used for creating a certain attribute in the aggregated block model.
column_name | Name that will be given to the new attribute. |