1.2.2
CCC
 
Statistics on variables of a Db

Compute one or several statistics (oper/opers) on a set of variables (names) contained in a Db and produce the results as a Table or as variables added to the input Db. More...

Functions

GSTLEARN_EXPORT Table dbStatisticsMono (Db *db, const VectorString &names, const std::vector< EStatOption > &opers=EStatOption::fromKeys({"MEAN"}), bool flagIso=true, double proba=TEST, double vmin=TEST, double vmax=TEST, const String &title="")
 Compute one or several statistics (oper/opers) on a set of variables (names) contained in a Db and produce the results as a Table or as variables added to the input Db. More...
 
GSTLEARN_EXPORT Table dbStatisticsCorrel (Db *db, const VectorString &names, bool flagIso=true, const String &title="")
 Compute one or several statistics (oper/opers) on a set of variables (names) contained in a Db and produce the results as a Table or as variables added to the input Db. More...
 
GSTLEARN_EXPORT void dbStatisticsPrint (const Db *db, const VectorString &names, const std::vector< EStatOption > &opers=EStatOption::fromKeys({"MEAN"}), bool flagIso=false, bool flagCorrel=false, const String &title="", const String &radix="")
 Compute one or several statistics (oper/opers) on a set of variables (names) contained in a Db and produce the results as a Table or as variables added to the input Db. More...
 
GSTLEARN_EXPORT Table dbStatisticsMulti (Db *db, const VectorString &names, const EStatOption &oper=EStatOption::fromKey("MEAN"), bool flagMono=true, const String &title="")
 Compute one or several statistics (oper/opers) on a set of variables (names) contained in a Db and produce the results as a Table or as variables added to the input Db. More...
 

Detailed Description

Compute one or several statistics (oper/opers) on a set of variables (names) contained in a Db and produce the results as a Table or as variables added to the input Db.

Parameters
dbDb structure
namesVector of n describing the target variables
titleTitle given to the output (if defined)

Function Documentation

GSTLEARN_EXPORT Table dbStatisticsCorrel ( Db db,
const VectorString names,
bool  flagIso,
const String title 
)

Compute one or several statistics (oper/opers) on a set of variables (names) contained in a Db and produce the results as a Table or as variables added to the input Db.

Parameters
dbDb structure
namesVector of n describing the target variables
titleTitle given to the output (if defined)
flagIsoRestrain statistics to isotopic samples
Returns
A Table containing the correlation matrix
GSTLEARN_EXPORT Table dbStatisticsMono ( Db db,
const VectorString names,
const std::vector< EStatOption > &  opers,
bool  flagIso,
double  proba,
double  vmin,
double  vmax,
const String title 
)

Compute one or several statistics (oper/opers) on a set of variables (names) contained in a Db and produce the results as a Table or as variables added to the input Db.

Parameters
dbDb structure
namesVector of n describing the target variables
titleTitle given to the output (if defined)
opersList of the operator ranks
flagIsoRestrain statistics to isotopic samples
probaProbability value (between 0 and 1)
vminMinimum threshold
vmaxMaximum threshold
Returns
A Table containing the results
GSTLEARN_EXPORT Table dbStatisticsMulti ( Db db,
const VectorString names,
const EStatOption &  oper,
bool  flagMono,
const String title 
)

Compute one or several statistics (oper/opers) on a set of variables (names) contained in a Db and produce the results as a Table or as variables added to the input Db.

Parameters
dbDb structure
namesVector of n describing the target variables
titleTitle given to the output (if defined)
operOperator
flagMonoWhen True, statistics by variable; otherwise, statistics by pair of variables
Returns
A Table containing the results
GSTLEARN_EXPORT void dbStatisticsPrint ( const Db db,
const VectorString names,
const std::vector< EStatOption > &  opers,
bool  flagIso,
bool  flagCorrel,
const String title,
const String radix 
)

Compute one or several statistics (oper/opers) on a set of variables (names) contained in a Db and produce the results as a Table or as variables added to the input Db.

Parameters
dbDb structure
namesVector of n describing the target variables
titleTitle given to the output (if defined)
opersList of the operator ranks
flagIsoRestrain statistics to isotopic samples
flagCorrelPrint the correlation matrix
radixRadix given to the printout