Public Member Functions | Protected Attributes

RdbStatsPercentiles Class Reference

#include <RdbStatsPercentiles.h>

Inheritance diagram for RdbStatsPercentiles:
Inheritance graph
[legend]
Collaboration diagram for RdbStatsPercentiles:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RdbStatsPercentiles (RDB &irdbtable, const string &name, const string &percent_list, bool implicitquartile) throw ( Exception )
 --percentiles 12,34.. and --quartile
 RdbStatsPercentiles (RDB &irdbtable, const string &name) throw ( Exception )
virtual int calculate_statistics () throw ( )
 Perform the final statistic for the set.
void init () throw ( )
virtual void normalize_results (const double norm) throw ( )
void set_output_columns (RDB &ordbtable) throw ( Exception )
virtual void update_statistics () throw ( Exception )
 Read the column from RDB++, update the statistics for the column.

Protected Attributes

vector< double > data
vector< pair< string, double > > the_percentile
double the_median
double * the_percentile_result

Detailed Description

A class to calculate the percentiles, RdbStatsPercentiles isA special case of the class RdbStats.

Definition at line 39 of file RdbStatsPercentiles.h.


Constructor & Destructor Documentation

RdbStatsPercentiles::RdbStatsPercentiles ( RDB &  irdbtable,
const string &  name,
const string &  percent_list,
bool  implicitquartile 
) throw ( Exception )

--percentiles 12,34.. and --quartile

Definition at line 35 of file RdbStatsPercentiles.cc.


Member Function Documentation

int RdbStatsPercentiles::calculate_statistics (  )  throw ( ) [virtual]

Perform the final statistic for the set.

Reimplemented from RdbStats.

Reimplemented in RdbStatsPercentilesAve, and RdbStatsPercentilesMed.

Definition at line 210 of file RdbStatsPercentiles.cc.

References RdbStats::calculate_statistics().

Referenced by RdbStatsPercentilesMed::calculate_statistics(), and RdbStatsPercentilesAve::calculate_statistics().

void RdbStatsPercentiles::update_statistics (  )  throw ( Exception ) [virtual]

Read the column from RDB++, update the statistics for the column.

Reimplemented from RdbStats.

Definition at line 300 of file RdbStatsPercentiles.cc.


The documentation for this class was generated from the following files: