#include "../../../color/RGBAColor.h"#include "../../../common/progress/TaskProgress.h"#include "../../../dataaccess/dataset/DataSet.h"#include "../../../dataaccess/dataset/DataSetType.h"#include "../../../dataaccess/dataset/ObjectIdSet.h"#include "../../../dataaccess/utils/Utils.h"#include "../../../datatype.h"#include "../../../raster.h"#include "../../../maptools/ExternalGraphicRendererManager.h"#include "../../../maptools/MarkRendererManager.h"#include "../../../qt/widgets/Utils.h"#include "../../../se/Utils.h"#include "../../../se.h"#include "../../../statistics/core/Enums.h"#include "../../../statistics/core/NumericStatisticalSummary.h"#include "../../../statistics/core/StringStatisticalSummary.h"#include "../../../statistics/core/SummaryFunctions.h"#include "../../../statistics/core/Utils.h"#include "ChartDisplay.h"#include "ChartDisplayWidget.h"#include "ChartStyle.h"#include "Histogram.h"#include "HistogramChart.h"#include "Scatter.h"#include "ScatterChart.h"#include "Utils.h"#include <boost/lexical_cast.hpp>#include <boost/ptr_container/ptr_vector.hpp>#include <QPen>#include <memory>Go to the source code of this file.
Functions | |
| void | buildNumericFrequencies (int slices, int stat, std::map< std::string, std::vector< std::pair< double, te::da::ObjectId * > > > valuestoSummarize, std::vector< double > &intervals, std::map< double, std::vector< te::da::ObjectId * > > &intervalToOIds, std::vector< unsigned int > &frequencies, double &minValue, double &interval) | 
| void | buildStringFrequencies (int stat, std::map< std::string, std::vector< std::pair< std::string, te::da::ObjectId * > > > valuestoSummarize, std::map< std::string, std::vector< te::da::ObjectId * > > &intervalToOIds, std::vector< unsigned int > &frequencies) | 
| void | buildSummarizedScatter (int stat, std::map< std::string, std::vector< te::da::ObjectId * > > oidsToSummarize, std::map< std::string, std::vector< std::pair< double, double > > > valuesToSummarize, te::qt::widgets::Scatter *scatter) | 
| float | errFunction (float x) | 
| float | gammln (float xx) | 
| float | gammp (float a, float x) | 
| void | gcf (float *gammcf, float a, float x, float *gln) | 
| double | getDouble (const std::string &value, std::vector< std::string > &sVector) | 
| double | getDouble (te::dt::DateTime *dateTime) | 
| double | getDouble (te::da::DataSet *dataset, int propId) | 
| te::da::ObjectId * | getObjectId (te::da::DataSet *dataset, std::vector< std::size_t > pkeys) | 
| void | getObjectIds (te::da::DataSet *dataset, std::vector< std::size_t > pkeys, std::vector< te::da::ObjectId * > &valuesOIDs) | 
| std::string | getStatisticalValue (int stat, te::stat::StringStatisticalSummary &sss) | 
| double | getStatisticalValue (int stat, te::stat::NumericStatisticalSummary &nss) | 
| void | gser (float *gamser, float a, float x, float *gln) | 
| void buildNumericFrequencies | ( | int | slices, | 
| int | stat, | ||
| std::map< std::string, std::vector< std::pair< double, te::da::ObjectId * > > > | valuestoSummarize, | ||
| std::vector< double > & | intervals, | ||
| std::map< double, std::vector< te::da::ObjectId * > > & | intervalToOIds, | ||
| std::vector< unsigned int > & | frequencies, | ||
| double & | minValue, | ||
| double & | interval | ||
| ) | 
Definition at line 426 of file Utils.cpp.
References te::stat::GetNumericStatisticalSummary(), and getStatisticalValue().
Referenced by te::qt::widgets::createHistogram().
| void buildStringFrequencies | ( | int | stat, | 
| std::map< std::string, std::vector< std::pair< std::string, te::da::ObjectId * > > > | valuestoSummarize, | ||
| std::map< std::string, std::vector< te::da::ObjectId * > > & | intervalToOIds, | ||
| std::vector< unsigned int > & | frequencies | ||
| ) | 
Definition at line 518 of file Utils.cpp.
References getStatisticalValue(), and te::stat::GetStringStatisticalSummary().
Referenced by te::qt::widgets::createHistogram().
| void buildSummarizedScatter | ( | int | stat, | 
| std::map< std::string, std::vector< te::da::ObjectId * > > | oidsToSummarize, | ||
| std::map< std::string, std::vector< std::pair< double, double > > > | valuesToSummarize, | ||
| te::qt::widgets::Scatter * | scatter | ||
| ) | 
Definition at line 362 of file Utils.cpp.
References te::qt::widgets::Scatter::addData(), te::stat::GetNumericStatisticalSummary(), and getStatisticalValue().
Referenced by te::qt::widgets::createScatter().
| float errFunction | ( | float | x | ) | 
Definition at line 174 of file Utils.cpp.
References gammp().
Referenced by te::qt::widgets::createNormalDistribution().
| float gammp | ( | float | a, | 
| float | x | ||
| ) | 
Definition at line 158 of file Utils.cpp.
Referenced by errFunction().
| void gcf | ( | float * | gammcf, | 
| float | a, | ||
| float | x, | ||
| float * | gln | ||
| ) | 
| double getDouble | ( | const std::string & | value, | 
| std::vector< std::string > & | sVector | ||
| ) | 
Definition at line 179 of file Utils.cpp.
Referenced by te::qt::widgets::createHistogram(), te::qt::widgets::createScatter(), te::da::DataSet::getAsString(), te::pgis::DataSet::getDateTime(), te::da::DataSet::getDouble(), terralib4::VectorDataSet::getFloat(), te::st::RasterCoverage::getInt(), te::st::RasterCoverage::getValue(), te::mem::DataSetItem::getValue(), and te::da::DataSet::getValue().
| double getDouble | ( | te::dt::DateTime * | dateTime | ) | 
Definition at line 192 of file Utils.cpp.
References te::dt::DATE, te::dt::DateTime::getDateTimeType(), and te::dt::TIME_INSTANT.
| double getDouble | ( | te::da::DataSet * | dataset, | 
| int | propId | ||
| ) | 
Definition at line 222 of file Utils.cpp.
References te::dt::FLOAT_TYPE, te::da::DataSet::getDouble(), te::da::DataSet::getFloat(), te::da::DataSet::getInt16(), te::da::DataSet::getInt32(), te::da::DataSet::getInt64(), te::da::DataSet::getNumeric(), te::da::DataSet::getPropertyDataType(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, te::dt::NUMERIC_TYPE, te::dt::UINT16_TYPE, te::dt::UINT32_TYPE, and te::dt::UINT64_TYPE.
| te::da::ObjectId* getObjectId | ( | te::da::DataSet * | dataset, | 
| std::vector< std::size_t > | pkeys | ||
| ) | 
Definition at line 582 of file Utils.cpp.
References te::da::GenerateOID(), and te::da::DataSet::getPropertyName().
Referenced by te::qt::widgets::createHistogram(), te::qt::widgets::createScatter(), and getObjectIds().
| void getObjectIds | ( | te::da::DataSet * | dataset, | 
| std::vector< std::size_t > | pkeys, | ||
| std::vector< te::da::ObjectId * > & | valuesOIDs | ||
| ) | 
Definition at line 595 of file Utils.cpp.
References getObjectId().
| std::string getStatisticalValue | ( | int | stat, | 
| te::stat::StringStatisticalSummary & | sss | ||
| ) | 
Definition at line 267 of file Utils.cpp.
References te::stat::StringStatisticalSummary::m_maxVal, te::stat::StringStatisticalSummary::m_minVal, te::stat::MAX_VALUE, and te::stat::MIN_VALUE.
Referenced by buildNumericFrequencies(), buildStringFrequencies(), and buildSummarizedScatter().
| double getStatisticalValue | ( | int | stat, | 
| te::stat::NumericStatisticalSummary & | nss | ||
| ) | 
Definition at line 296 of file Utils.cpp.
References te::stat::AMPLITUDE, te::stat::KURTOSIS, te::stat::NumericStatisticalSummary::m_amplitude, te::stat::NumericStatisticalSummary::m_kurtosis, te::stat::NumericStatisticalSummary::m_maxVal, te::stat::NumericStatisticalSummary::m_mean, te::stat::NumericStatisticalSummary::m_median, te::stat::NumericStatisticalSummary::m_minVal, te::stat::NumericStatisticalSummary::m_skewness, te::stat::NumericStatisticalSummary::m_stdDeviation, te::stat::NumericStatisticalSummary::m_sum, te::stat::NumericStatisticalSummary::m_varCoeff, te::stat::NumericStatisticalSummary::m_variance, te::stat::MAX_VALUE, te::stat::MEAN, te::stat::MEDIAN, te::stat::MIN_VALUE, te::stat::SKEWNESS, te::stat::STANDARD_DEVIATION, te::stat::SUM, te::stat::VAR_COEFF, and te::stat::VARIANCE.