Public Member Functions | |
QCorrelations (int nvar, string suff="") | |
default constructor | |
void | StoreHistos (const QVector &min, const QVector &max) |
store and fill histograms of each pair of variables | |
void | StoreVectors (int nEntries=10000) |
store and fill vectors with allentries used in corrs (heavy!) | |
int | Load (const QVector &data) |
load individual 'events' | |
double | GetCovariance (int i, int j) const |
retrieve the i,j element of the covariance matrix | |
QMatrix | GetCovariance () const |
retrieve the full covariance matrix | |
double | GetCorrelation (int i, int j) const |
retrieve correlations between the i,j variables | |
TH2D * | GetHisto (int i, int j) const |
retrieve the 2D histo | |
QVector * | GetVec (int i) const |
retrieve the individual vectors; pointer is owned by caller | |
size_t | NVars () const |
Private Member Functions | |
int | code (int i, int j) const |
Private Attributes | |
size_t | fNVars |
size_t | fNevts |
QVector | fSums |
QVector | fSums2 |
QMatrix | fCrossSums |
vector< TH2D * > | fHistos |
vector< QVector * > | fVectors |
string | fSuff |
Q_BEGIN_NAMESPACE QCorrelations::QCorrelations | ( | int | nvar, | |
string | suff = "" | |||
) |
default constructor
nvar | number of input variables | |
suff | suffix for histos(needed when multiple instances are created) |
void QCorrelations::StoreHistos | ( | const QVector & | min, | |
const QVector & | max | |||
) |
store and fill histograms of each pair of variables
mix,max,: | minimum and maximum of the variable axes |
Referenced by MVibraDataReader::Init().
void QCorrelations::StoreVectors | ( | int | nEntries = 10000 |
) |
store and fill vectors with allentries used in corrs (heavy!)
nEntries | expected number of entries (the closer to truth, the faster) |
Referenced by MVibraDataReader::Init().
int QCorrelations::Load | ( | const QVector & | data | ) |
load individual 'events'
data. | If not of the same size as correlations returns non null value |
Referenced by MVibraDataReader::Do().
TH2D* QCorrelations::GetHisto | ( | int | i, | |
int | j | |||
) | const [inline] |
retrieve the 2D histo
i,j | variables that filled the histo |
QVector * QCorrelations::GetVec | ( | int | i | ) | const |
retrieve the individual vectors; pointer is owned by caller
i | variable that filled the vector |