Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes

RdbStats Class Reference

#include <RdbStats.h>

Inheritance diagram for RdbStats:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 RdbStats (RDB &irdbtable, const string &name) throw ( Exception )
virtual int calculate_statistics () throw ( )
 Perform the final statistic for the set.
double get_absolute_average () const
 To get the absolute value of the average.
virtual void init () throw ( )
virtual void normalize_results (const double norm) throw ( )
virtual 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 Types

enum  Stats {
  AVG, MAX, MIN, SD,
  SUM, SUM2, SUM_T
}

Protected Member Functions

double get_value () throw ( Exception )

Protected Attributes

double num_n
string column_name
double the_statistics [7]

Detailed Description

The base class to calculate : average, maximum, minimum, num, stddev and sum. The derived classes are: RdbStatsPercentile, RdbStatsQuartile.

Definition at line 38 of file RdbStats.h.


Member Function Documentation

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

Perform the final statistic for the set.

Reimplemented in RdbStatsAve, RdbStatsPercentiles, RdbStatsPercentilesAve, and RdbStatsPercentilesMed.

Definition at line 77 of file RdbStats.cc.

Referenced by RdbStatsPercentiles::calculate_statistics(), and RdbStatsAve::calculate_statistics().

double RdbStats::get_absolute_average (  )  const [inline]

To get the absolute value of the average.

Definition at line 50 of file RdbStats.h.

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

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

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

Reimplemented in RdbStatsPercentiles.

Definition at line 204 of file RdbStats.cc.


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