GPUdb C++ API
Version 5.2.0.0
|
A set of output parameters for aggregateStatistics(const AggregateStatisticsRequest&) const. More...
#include <gpudb/protocol/aggregate_statistics.h>
Public Member Functions | |
AggregateStatisticsResponse () | |
Constructs an AggregateStatisticsResponse object with default parameter values. More... | |
Public Attributes | |
std::map< std::string, double > | stats |
A set of output parameters for aggregateStatistics(const AggregateStatisticsRequest&) const.
Calculates the requested statistics of a given column in a given table.
The available statistics are count (number of total objects), mean, stdv (standard deviation), variance, skew, kurtosis, sum, min, max, weighted_average, cardinality (unique count), estimated cardinality, percentile and percentile_rank.
Estimated cardinality is calculated by using the hyperloglog approximation technique.
Percentiles and percentile_ranks are approximate and are calculated using the t-digest algorithm. They must include the desired percentile/percentile_rank. To compute multiple percentiles each value must be specified separately (i.e. 'percentile(75.0),percentile(99.0),percentile_rank(1234.56),percentile_rank(-5)').
The weighted average statistic requires a weight_attribute to be specified in options. The weighted average is then defined as the sum of the products of columnName times the weight attribute divided by the sum of the weight attribute.
The response includes a list of the statistics requested along with the count of the number of items in the given set.
Definition at line 182 of file aggregate_statistics.h.
|
inline |
Constructs an AggregateStatisticsResponse object with default parameter values.
Definition at line 189 of file aggregate_statistics.h.
std::map<std::string, double> gpudb::AggregateStatisticsResponse::stats |
Definition at line 194 of file aggregate_statistics.h.