Class returning the list of sample IDs for a quick search within a Db. More...
#include <RankHandler.hpp>
Class returning the list of sample IDs for a quick search within a Db.
The main functionality of this class is to return the list of samples per variable, within a given list of elligible sample ranks (neighborhood)
Public Member Functions | |
RankHandler (const Db *db=nullptr, bool useSel=true, bool useZ=true, bool useVerr=false, bool useExtD=true) | |
RankHandler (const RankHandler &r) | |
RankHandler & | operator= (const RankHandler &r) |
virtual | ~RankHandler () |
void | defineSampleRanks (const 1 &nbgh=1()) |
const & | getSampleRanks (Id ivar) const |
const & | getSampleRanks () const |
& | getSampleRanksByVariable (Id ivar) |
std::shared_ptr< 1 > & | getZflatten () |
Id | getNumber () const |
Return the total number of samples. | |
Id | getCount (Id ivar) const |
Get the number of active samples for a given variable. | |
Id | getTotalCount () const |
Get the total number of active samples for all variables. | |
Id | identifyVariableRank (Id ipos) const |
Id | identifySampleRank (Id ipos) const |
void | dump (bool flagFull=false) const |
gstlrn::RankHandler::RankHandler | ( | const Db * | db = nullptr , |
bool | useSel = true , |
||
bool | useZ = true , |
||
bool | useVerr = false , |
||
bool | useExtD = true |
||
) |
gstlrn::RankHandler::RankHandler | ( | const RankHandler & | r | ) |
|
virtual |
void gstlrn::RankHandler::defineSampleRanks | ( | const 1 & | nbgh = 1() | ) |
Defines the list of indices 'index' for valid samples for the set of variables (Z locator)
nbgh | Vector giving the ranks of the elligible samples (optional) |
void gstlrn::RankHandler::dump | ( | bool | flagFull = false | ) | const |
Get the number of active samples for a given variable.
ivar | Rank of the target variable |
Id gstlrn::RankHandler::getNumber | ( | ) | const |
Return the total number of samples.
|
inline |
|
inline |
|
inline |
Id gstlrn::RankHandler::getTotalCount | ( | ) | const |
Get the total number of active samples for all variables.
|
inline |
RankHandler & gstlrn::RankHandler::operator= | ( | const RankHandler & | r | ) |