![]() |
MineLink
|
An implementation of a reblocker based on regular dimensions and attribute filters. More...
#include <reblock.h>
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::BlockModel * | Reblock () |
Performs the reblocking process and constructs a new block model with specified new columns. | |
delphos::BlockModel * | ReblockToRegularBlockModel () |
Performs the reblocking process and constructs a new regular block model with specified new columns, adding empty blocks to block model to fill holes. | |
![]() | |
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... | |
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).
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.
bm | The block model to be reblocked. |
dx | Reblocking distance (maximum size) in the X axis. |
dy | Reblocking distance (maximum size) in the Y axis. |
dz | Reblocking distance (maximum size) in the Z axis. |
column_list | list 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.
bm | The block model to be reblocked. |
dx | Reblocking distance (maximum size) in the X axis. |
dy | Reblocking distance (maximum size) in the Y axis. |
dz | Reblocking distance (maximum size) in the Z axis. |
column_list | list of attributes to be used to filter. |
reblocked_id_col | name 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.
bm | The block model to be reblocked. |
dx | Reblocking distance (maximum size) in the X axis. |
dy | Reblocking distance (maximum size) in the Y axis. |
dz | Reblocking 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.
bm | The block model to be reblocked. |
dx | Reblocking distance (maximum size) in the X axis. |
dy | Reblocking distance (maximum size) in the Y axis. |
dz | Reblocking distance (maximum size) in the Z axis. |
reblocked_id_col | name 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.