1 #ifndef RdbStatsPercentiles_H 2 #define RdbStatsPercentiles_H 44 const std::string& percent_list,
bool implicitquartile );
53 virtual void normalize_results(
const double norm );
55 void set_output_columns( RDB& ordbtable );
61 std::vector< double > data;
63 std::vector< std::pair< std::string, double > > the_percentile;
67 std::vector<double> the_percentile_result;
72 double calculate_median( );
75 double calculate_percentile(
const double percentile );
The base class to calculate : average, maximum, minimum, num, stddev and sum.
virtual void update_statistics()
Read the column from RDB++, update the statistics for the column.
RdbStatsPercentiles(RDB &irdbtable, const std::string &name, const std::string &percent_list, bool implicitquartile)
–percentiles 12,34.. and –quartile
virtual int calculate_statistics()
Perform the final statistic for the set.
A class to calculate the percentiles, RdbStatsPercentiles isA special case of the class RdbStats.