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

An implementation of a reblocker based on regular dimensions and attribute filters. More...

#include <reblock.h>

Inheritance diagram for delphos::RegularReblocker:
Inheritance graph
Collaboration diagram for delphos::RegularReblocker:
Collaboration graph

Public Member Functions

 RegularReblocker (delphos::BlockModel &bm, const double &dx, const double &dy, const double &dz, const std::vector< std::string > &column_list)
 Creates a new regular reblocker, that reblocks in blocks of sizes dx, dy, dz and filters by the given list of attributes. More...
 
 RegularReblocker (delphos::BlockModel &bm, const double &dx, const double &dy, const double &dz, const std::vector< std::string > &column_list, const string &reblocked_id_col)
 Creates a new regular reblocker, that reblocks in blocks of sizes dx, dy, dz and filters by the given list of attributes. More...
 
 RegularReblocker (delphos::BlockModel &bm, const double &dx, const double &dy, const double &dz)
 Creates a new regular reblocker, that reblocks in blocks of sizes dx, dy, dz and filters by the given list of attributes. More...
 
 RegularReblocker (delphos::BlockModel &bm, const double &dx, const double &dy, const double &dz, const string &reblocked_id_col)
 Creates a new regular reblocker, that reblocks in blocks of sizes dx, dy, dz and filters by the given list of attributes. More...
 
virtual ~RegularReblocker ()
 Destructor.
 
virtual delphos::BlockModelReblock ()
 Performs the reblocking process and constructs a new block model with specified new columns.
 
delphos::BlockModelReblockToRegularBlockModel ()
 Performs the reblocking process and constructs a new regular block model with specified new columns, adding empty blocks to block model to fill holes.
 
- Public Member Functions inherited from delphos::Reblocker
 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.
 
- Public Member Functions inherited from delphos::BlockModelEntity
 BlockModelEntity (delphos::BlockModel &bm)
 Creates a new block instance associated to a given block model. More...
 
delphos::BlockModelGetBlockModel ()
 Retrieves the block model to which the entity is associated. More...
 
const delphos::BlockModelGetBlockModel () const
 Retrieves the block model to which the entity is associated. More...
 

Detailed Description

An implementation of a reblocker based on regular dimensions and attribute filters.

This class allows to reblock blocks into regular sizes but so that they have the same attribute values (for a given list of attributes).

Constructor & Destructor Documentation

delphos::RegularReblocker::RegularReblocker ( delphos::BlockModel bm,
const double &  dx,
const double &  dy,
const double &  dz,
const std::vector< std::string > &  column_list 
)

Creates a new regular reblocker, that reblocks in blocks of sizes dx, dy, dz and filters by the given list of attributes.

Parameters
bmThe block model to be reblocked.
dxReblocking distance (maximum size) in the X axis.
dyReblocking distance (maximum size) in the Y axis.
dzReblocking distance (maximum size) in the Z axis.
column_listlist of attributes to be used to filter.

This reblocking will create blocks of maximum given size but, within each aggregated unit, it will not aggregate blocks with different values of the attributes given in the column_list. Otherwise said, within each unit of size dx x dy x dz, only blocks such that all attribute in the list are the same will be aggregated together.

delphos::RegularReblocker::RegularReblocker ( delphos::BlockModel bm,
const double &  dx,
const double &  dy,
const double &  dz,
const std::vector< std::string > &  column_list,
const string &  reblocked_id_col 
)

Creates a new regular reblocker, that reblocks in blocks of sizes dx, dy, dz and filters by the given list of attributes.

Parameters
bmThe block model to be reblocked.
dxReblocking distance (maximum size) in the X axis.
dyReblocking distance (maximum size) in the Y axis.
dzReblocking distance (maximum size) in the Z axis.
column_listlist of attributes to be used to filter.
reblocked_id_colname of column added in bm of reblocked id.

This reblocking will create blocks of maximum given size but, within each aggregated unit, it will not aggregate blocks with different values of the attributes given in the column_list. Otherwise said, within each unit of size dx x dy x dz, only blocks such that all attribute in the list are the same will be aggregated together.

delphos::RegularReblocker::RegularReblocker ( delphos::BlockModel bm,
const double &  dx,
const double &  dy,
const double &  dz 
)

Creates a new regular reblocker, that reblocks in blocks of sizes dx, dy, dz and filters by the given list of attributes.

Parameters
bmThe block model to be reblocked.
dxReblocking distance (maximum size) in the X axis.
dyReblocking distance (maximum size) in the Y axis.
dzReblocking distance (maximum size) in the Z axis.

This reblocker will aggregate in units of dx x dy x dz regardless of other attributes of the blocks within.

delphos::RegularReblocker::RegularReblocker ( delphos::BlockModel bm,
const double &  dx,
const double &  dy,
const double &  dz,
const string &  reblocked_id_col 
)

Creates a new regular reblocker, that reblocks in blocks of sizes dx, dy, dz and filters by the given list of attributes.

Parameters
bmThe block model to be reblocked.
dxReblocking distance (maximum size) in the X axis.
dyReblocking distance (maximum size) in the Y axis.
dzReblocking distance (maximum size) in the Z axis.
reblocked_id_colname of column added in bm of reblocked id.

This reblocker will aggregate in units of dx x dy x dz regardless of other attributes of the blocks within.


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