27 #include "../../common/Translator.h"
28 #include "../../dataaccess/dataset/DataSet.h"
39 return TE_TR(
"MIN_VALUE");
42 return TE_TR(
"MAX_VALUE");
51 return TE_TR(
"COUNT");
54 return TE_TR(
"VALID_COUNT");
57 return TE_TR(
"STANDARD_DEVIATION");
60 return TE_TR(
"VARIANCE");
63 return TE_TR(
"SKEWNESS");
66 return TE_TR(
"KURTOSIS");
69 return TE_TR(
"AMPLITUDE");
72 return TE_TR(
"MEDIAN");
75 return TE_TR(
"VAR_COEFF");
90 return TE_TR(
"Minimum value");
93 return TE_TR(
"Maximum value");
99 return TE_TR(
"Sum of values");
102 return TE_TR(
"Total number of values");
105 return TE_TR(
"Total not null values");
108 return TE_TR(
"Standard deviation");
111 return TE_TR(
"Variance");
114 return TE_TR(
"Skewness");
117 return TE_TR(
"Kurtosis");
120 return TE_TR(
"Amplitude");
123 return TE_TR(
"Median");
126 return TE_TR(
"Coefficient variation");
129 return TE_TR(
"Mode");
138 std::vector<std::string> result;
139 std::string value=
"";
145 if (!dataSet->
isNull(propName))
148 result.push_back(value);
157 std::vector<double> result;
169 if (!dataSet->
isNull(propName))
176 numval = (double)dataSet->
getInt64(index);
181 result.push_back(numval);
virtual boost::int16_t getInt16(std::size_t i) const =0
Method for retrieving a 16-bit integer attribute value (2 bytes long).
virtual boost::int32_t getInt32(std::size_t i) const =0
Method for retrieving a 32-bit integer attribute value (4 bytes long).
virtual boost::int64_t getInt64(std::size_t i) const =0
Method for retrieving a 64-bit integer attribute value (8 bytes long).
TESTATEXPORT std::string GetStatSummaryShortName(const int &e)
Get the statistical parameter short name from its enumerator.
Utility functions for Statistics.
#define TE_TR(message)
It marks a string in order to get translated.
virtual double getDouble(std::size_t i) const =0
Method for retrieving a double attribute value.
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.
virtual bool moveNext()=0
It moves the internal pointer to the next item of the collection.
virtual float getFloat(std::size_t i) const =0
Method for retrieving a float attribute value.
virtual std::string getPropertyName(std::size_t i) const =0
It returns the property name at position pos.
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.
virtual bool isNull(std::size_t i) const =0
It checks if the attribute value is NULL.
Enumerations related to Vector Processing module.
TESTATEXPORT std::string GetStatSummaryFullName(const int &e)
Get the statistical parameter full name ffrom its enumerator.
virtual std::size_t getNumProperties() const =0
It returns the number of properties that composes an item of the dataset.
A dataset is the unit of information manipulated by the data access module of TerraLib.
virtual std::string getString(std::size_t i) const =0
Method for retrieving a string value attribute.
An exception class for the statistical module.
virtual int getPropertyDataType(std::size_t i) const =0
It returns the underlying data type of the property at position pos.
virtual bool moveFirst()=0
It moves the internal pointer to the first item in the collection.
Configuration flags for the Terrralib Statistic module.