#include "gstlearn_export.hpp"
#include "Enum/EStatOption.hpp"
#include "Matrix/MatrixSquareSymmetric.hpp"
#include "Basic/VectorNumT.hpp"
#include "Basic/NamingConvention.hpp"
Functions | |
GSTLEARN_EXPORT VectorString | statOptionToName (const std::vector< EStatOption > &opers) |
GSTLEARN_EXPORT std::vector< EStatOption > | KeysToStatOptions (const VectorString &opers) |
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="") |
GSTLEARN_EXPORT Table | dbStatisticsCorrel (Db *db, const VectorString &names, bool flagIso=true, const String &title="") |
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="") |
GSTLEARN_EXPORT Table | dbStatisticsMulti (Db *db, const VectorString &names, const EStatOption &oper=EStatOption::fromKey("MEAN"), bool flagMono=true, const String &title="") |
GSTLEARN_EXPORT VectorDouble | dbStatisticsPerCell (Db *db, DbGrid *dbgrid, const EStatOption &oper, const String &name1, const String &name2="", const VectorDouble &cuts=VectorDouble()) |
GSTLEARN_EXPORT int | statisticsProportion (DbGrid *dbin, DbGrid *dbout, int pos, int nfacies, int radius) |
GSTLEARN_EXPORT int | statisticsTransition (DbGrid *dbin, DbGrid *dbout, int pos, int nfacies, int radius, int orient) |
GSTLEARN_EXPORT VectorDouble | dbStatisticsFacies (Db *db) |
GSTLEARN_EXPORT double | dbStatisticsIndicator (Db *db) |
GSTLEARN_EXPORT MatrixSquareGeneral * | sphering (const AMatrix *X) |
GSTLEARN_EXPORT VectorVectorInt | correlationPairs (Db *db1, Db *db2, const String &name1, const String &name2, bool flagFrom1=false, bool verbose=false) |
GSTLEARN_EXPORT VectorVectorInt | hscatterPairs (Db *db, const String &name1, const String &name2, VarioParam *varioparam, int ipas=0, int idir=0, bool verbose=false) |
GSTLEARN_EXPORT int | correlationIdentify (Db *db1, Db *db2, int icol1, int icol2, Polygons *polygon) |
GSTLEARN_EXPORT VectorVectorDouble | condexp (Db *db1, Db *db2, int icol1, int icol2, double mini, double maxi, int nclass, bool verbose=false) |
GSTLEARN_EXPORT std::map< int, int > | contingencyTable (const VectorInt &values) |
GSTLEARN_EXPORT std::map< int, std::map< int, int > > | contingencyTable2 (const VectorInt &values, const VectorInt &bins) |
GSTLEARN_EXPORT void | dbStatisticsVariables (Db *db, const VectorString &names, const std::vector< EStatOption > &opers, int iptr0, double proba=TEST, double vmin=TEST, double vmax=TEST) |
GSTLEARN_EXPORT int | dbStatisticsInGridTool (Db *db, DbGrid *dbgrid, const VectorString &names, const EStatOption &oper, int radius, int iptr0) |
GSTLEARN_EXPORT VectorVectorDouble condexp | ( | Db * | db1, |
Db * | db2, | ||
int | icol1, | ||
int | icol2, | ||
double | mini, | ||
double | maxi, | ||
int | nclass, | ||
bool | verbose | ||
) |
Evaluate the experimental conditional expectation
[in] | db1 | Db descriptor (for target variable) |
[in] | db2 | Db descriptor (for auxiliary variables) |
[in] | icol1 | Rank of the target variable |
[in] | icol2 | Rank of the explanatory variable |
[in] | mini | Minimum value for the explanaroty variable |
[in] | maxi | Maximum value for the explanaroty variable |
[in] | nclass | Number of classes |
[in] | verbose | Verbose flag |
GSTLEARN_EXPORT std::map<int, int> contingencyTable | ( | const VectorInt & | values | ) |
GSTLEARN_EXPORT std::map<int, std::map<int,int> > contingencyTable2 | ( | const VectorInt & | values, |
const VectorInt & | bins | ||
) |
GSTLEARN_EXPORT int correlationIdentify | ( | Db * | db1, |
Db * | db2, | ||
int | icol1, | ||
int | icol2, | ||
Polygons * | polygon | ||
) |
Identify samples from scatter plot when included within a polygon
[in] | db1 | Db descriptor (first variable) |
[in] | db2 | Db descriptor (second variable for flag.same=T) |
[in] | icol1 | Rank of the first column |
[in] | icol2 | Rank of the second column |
[in] | polygon | Polygons structure |
GSTLEARN_EXPORT VectorVectorInt correlationPairs | ( | Db * | db1, |
Db * | db2, | ||
const String & | name1, | ||
const String & | name2, | ||
bool | flagFrom1, | ||
bool | verbose | ||
) |
Evaluate the correlation Correl(Z1(x) , Z2(x))
[in] | db1 | Db descriptor (first variable) |
[in] | db2 | Db descriptor (second variable for flag.same=T) |
[in] | name1 | Name of the first variable |
[in] | name2 | Name of the second variable |
[in] | flagFrom1 | Start numbering of indices from 1 if True |
[in] | verbose | Verbose flag |
GSTLEARN_EXPORT VectorDouble dbStatisticsFacies | ( | Db * | db | ) |
Considering that the Unique variable is a Facies (positive integer) returns the vector of proportions
[in] | db | Db structure |
GSTLEARN_EXPORT double dbStatisticsIndicator | ( | Db * | db | ) |
Considering that the Unique variable is an Indicator (0 or 1) returns the proportion of 1
[in] | db | Db structure |
GSTLEARN_EXPORT int dbStatisticsInGridTool | ( | Db * | db, |
DbGrid * | dbgrid, | ||
const VectorString & | names, | ||
const EStatOption & | oper, | ||
int | radius, | ||
int | iptr0 | ||
) |
GSTLEARN_EXPORT VectorVectorInt hscatterPairs | ( | Db * | db, |
const String & | name1, | ||
const String & | name2, | ||
VarioParam * | varioparam, | ||
int | ipas, | ||
int | idir, | ||
bool | verbose | ||
) |
Evaluate the shifted correlation calculated as follows: Correl(Z1(x) , Z2(x+h))
[in] | db | Db descriptor |
[in] | name1 | Name of the first variable |
[in] | name2 | Name of the second variable |
[in] | varioparam | pointer to a VarioParam structure |
[in] | ipas | Rank of the lag of interest |
[in] | idir | Rank of the direction of interest (within VarioParam) |
[in] | verbose | Verbose flag |
GSTLEARN_EXPORT std::vector<EStatOption> KeysToStatOptions | ( | const VectorString & | opers | ) |
GSTLEARN_EXPORT MatrixSquareGeneral* sphering | ( | const AMatrix * | X | ) |
Sphering procedure
X | Input Data vector |
GSTLEARN_EXPORT VectorString statOptionToName | ( | const std::vector< EStatOption > & | opers | ) |