This is the namespace for the Statistics module. More...
Classes | |
struct | NumericStatisticalComplexSummary |
struct | NumericStatisticalSummary |
A structure to hold the set of statistics from a set of numerical values. More... | |
class | StatisticsDialog |
struct | StringStatisticalSummary |
A structure to hold the set of statistics from a set of categorical (sample) values. More... | |
Enumerations | |
enum | StatisticalSummary { MIN_VALUE , MAX_VALUE , MEAN , SUM , COUNT , VALID_COUNT , STANDARD_DEVIATION , VARIANCE , SKEWNESS , KURTOSIS , AMPLITUDE , MEDIAN , VAR_COEFF , MODE , PERCENT_EACH_CLASS_BY_AREA , PERCENT_TOTAL_AREA , TOTAL_AREA_BY_CLASS } |
Define grouping functions type. More... | |
Functions | |
TESTATEXPORT void | GetNumericComplexStatisticalSummary (std::vector< std::complex< double > > &values, te::stat::NumericStatisticalComplexSummary &ss) |
TESTATEXPORT std::vector< double > | GetNumericData (te::da::DataSet *dataSet, const std::string propName) |
Returns the values of a numeric type property in a vector of values. More... | |
TESTATEXPORT void | GetNumericStatisticalSummary (std::map< double, int > &values, te::stat::NumericStatisticalSummary &ss) |
TESTATEXPORT void | GetNumericStatisticalSummary (std::vector< double > &values, te::stat::NumericStatisticalSummary &ss) |
TESTATEXPORT void | GetNumericStatisticalSummary (std::vector< double > &values, te::stat::NumericStatisticalSummary &ss, double nullValue) |
TESTATEXPORT void | GetNumericStatisticalSummaryQuery (const std::string &inDataset, te::da::DataSource *inDatasource, const std::string &propName, te::stat::NumericStatisticalSummary &ss) |
TESTATEXPORT void | GetPercentOfEachClassByArea (std::map< double, int > &values, double &resolutionX, double &resolutionY, double &area, te::stat::NumericStatisticalSummary &ss) |
TESTATEXPORT std::string | GetStatSummaryFullName (const int &e) |
Get the statistical parameter full name ffrom its enumerator. More... | |
TESTATEXPORT std::string | GetStatSummaryShortName (const int &e) |
Get the statistical parameter short name from its enumerator. More... | |
TESTATEXPORT std::vector< std::string > | GetStringData (te::da::DataSet *dataSet, const std::string propName) |
Returns the values of a string type property in a vector of values. More... | |
TESTATEXPORT void | GetStringStatisticalSummary (std::vector< std::string > &values, te::stat::StringStatisticalSummary &ss) |
TESTATEXPORT void | GetStringStatisticalSummary (std::vector< std::string > &values, te::stat::StringStatisticalSummary &ss, const std::string &nullValue) |
TESTATEXPORT void | GetStringStatisticalSummaryQuery (const std::string &inDataset, te::da::DataSource *inDatasource, const std::string &propName, te::stat::StringStatisticalSummary &ss) |
TESTATEXPORT void | GetTotalAreaByClass (std::map< double, int > &values, double &resolutionX, double &resolutionY, double &area, te::stat::NumericStatisticalSummary &ss) |
TESTATEXPORT void | Mode (const std::vector< double > &values, te::stat::NumericStatisticalSummary &ss) |
TESTATEXPORT void | Mode (const std::vector< std::string > &values, te::stat::StringStatisticalSummary &ss) |
This is the namespace for the Statistics module.
Define grouping functions type.
TESTATEXPORT void te::stat::GetNumericComplexStatisticalSummary | ( | std::vector< std::complex< double > > & | values, |
te::stat::NumericStatisticalComplexSummary & | ss | ||
) |
Fills the summary statistics structure from a set of numerical complex values.
values | a vector of numerical values. Do not pass empty. |
ss | to return the statistical summary. |
TESTATEXPORT std::vector<double> te::stat::GetNumericData | ( | te::da::DataSet * | dataSet, |
const std::string | propName | ||
) |
Returns the values of a numeric type property in a vector of values.
It returns only the non-empty values.
dataSet | A pointer to the dataset. Do not pass null. |
propName | The propoerty name. Do not pass empty. |
TESTATEXPORT void te::stat::GetNumericStatisticalSummary | ( | std::map< double, int > & | values, |
te::stat::NumericStatisticalSummary & | ss | ||
) |
Fills the summary statistics structure from a set of numerical values.
values | a map of numerical values as key and number of occurrence as value. Do not pass empty. |
ss | to return the statistical summary. |
TESTATEXPORT void te::stat::GetNumericStatisticalSummary | ( | std::vector< double > & | values, |
te::stat::NumericStatisticalSummary & | ss | ||
) |
Fills the summary statistics structure from a set of numerical values.
values | a vector of numerical values. Do not pass empty. |
ss | to return the statistical summary. |
TESTATEXPORT void te::stat::GetNumericStatisticalSummary | ( | std::vector< double > & | values, |
te::stat::NumericStatisticalSummary & | ss, | ||
double | nullValue | ||
) |
Fills the summary statistics structure from a set of numerical values.
values | a vector of numerical values. Do not pass empty. |
ss | to return the statistical summary. |
nullVal | a value to be considered as non-value or invalid value. |
TESTATEXPORT void te::stat::GetNumericStatisticalSummaryQuery | ( | const std::string & | inDataset, |
te::da::DataSource * | inDatasource, | ||
const std::string & | propName, | ||
te::stat::NumericStatisticalSummary & | ss | ||
) |
Fills the summary statistics structure of a given numerical property from a dataset.
inDataset | a dataset name. |
inDatasource | a pointer to a datasource. Do not pass null. |
propName | the name of the property to be summarized. |
ss | to return the statistical summary. |
TESTATEXPORT void te::stat::GetPercentOfEachClassByArea | ( | std::map< double, int > & | values, |
double & | resolutionX, | ||
double & | resolutionY, | ||
double & | area, | ||
te::stat::NumericStatisticalSummary & | ss | ||
) |
Fills the percentage of each class by area.
values | a map of numerical values as key and number of occurrence as value. Do not pass empty. |
resolutionX | a raster horizontal (x-axis) resolution. |
resolutionY | a raster vertical (y-axis) resolution. |
area | area of a geometry that intersects the raster. |
ss | to return the percentage of each class by area. |
TESTATEXPORT std::string te::stat::GetStatSummaryFullName | ( | const int & | e | ) |
Get the statistical parameter full name ffrom its enumerator.
e | The enumerator. |
TESTATEXPORT std::string te::stat::GetStatSummaryShortName | ( | const int & | e | ) |
Get the statistical parameter short name from its enumerator.
e | The enumerator. |
TESTATEXPORT std::vector<std::string> te::stat::GetStringData | ( | te::da::DataSet * | dataSet, |
const std::string | propName | ||
) |
Returns the values of a string type property in a vector of values.
It returns only the non-empty values.
dataSet | A pointer to the dataset. Do not pass null. |
propName | The propoerty name. Do not pass empty. |
TESTATEXPORT void te::stat::GetStringStatisticalSummary | ( | std::vector< std::string > & | values, |
te::stat::StringStatisticalSummary & | ss | ||
) |
Fills the summary statistics structure from a set of categorical values.
values | a vector of categorical values. Do not pass empty. |
ss | to return the statistical summary. |
TESTATEXPORT void te::stat::GetStringStatisticalSummary | ( | std::vector< std::string > & | values, |
te::stat::StringStatisticalSummary & | ss, | ||
const std::string & | nullValue | ||
) |
Fills the summary statistics structure from a set of categorical values.
values | a vector of categorical values. Do not pass empty. |
ss | to return the statistical summary. |
nullVal | a value to be considered as non-value or invalid value. |
TESTATEXPORT void te::stat::GetStringStatisticalSummaryQuery | ( | const std::string & | inDataset, |
te::da::DataSource * | inDatasource, | ||
const std::string & | propName, | ||
te::stat::StringStatisticalSummary & | ss | ||
) |
Fills the summary statistics structure of a given categorical property from a dataset.
inDataset | a dataset name. |
inDatasource | a pointer to a datasource. Do not pass null. |
propName | the name of the property to be summarized. |
ss | to return the statistical summary. |
TESTATEXPORT void te::stat::GetTotalAreaByClass | ( | std::map< double, int > & | values, |
double & | resolutionX, | ||
double & | resolutionY, | ||
double & | area, | ||
te::stat::NumericStatisticalSummary & | ss | ||
) |
Fills the total by class
values | a map of numerical values as key and number of occurrence as value. Do not pass empty. |
resolutionX | a raster horizontal (x-axis) resolution. |
resolutionY | a raster vertical (y-axis) resolution. |
area | area of a geometry that intersects the raster. |
ss | to return the totalarea by class. |
TESTATEXPORT void te::stat::Mode | ( | const std::vector< double > & | values, |
te::stat::NumericStatisticalSummary & | ss | ||
) |
Returns the mode of set of numerical values.
values | a reference to a set of numerical values. Do not pass empty. |
ss | to return the mode (most frequent value). |
TESTATEXPORT void te::stat::Mode | ( | const std::vector< std::string > & | values, |
te::stat::StringStatisticalSummary & | ss | ||
) |
Returns the mode of set of categorical values.
values | a reference to a set of categorical values; |
ss | to return the mode (most frequent value). |