glotzmath::Mean Class Reference

Computes the mean of a collection of data. More...

#include <Mean.h>

Inheritance diagram for glotzmath::Mean:

glotzmath::Statistic glotzutil::Listable

List of all members.

Public Member Functions

 Mean ()
 Mean (const Mean &)
MeanClone ()
 Clone Constructor.
 ~Mean ()
void AddData (double)
void Clear ()
double GetValue ()
std::string GetName ()
void CombineWith (Statistic *)

Private Attributes

double mSum
double mCount


Detailed Description

Computes the mean of a collection of data.

Constructor & Destructor Documentation

glotzmath::Mean::Mean (  ) 

glotzmath::Mean::Mean ( const Mean m  ) 

glotzmath::Mean::~Mean (  ) 


Member Function Documentation

Mean * glotzmath::Mean::Clone (  )  [virtual]

Clone Constructor.

Returns:
A new copy of the object

Reimplemented from glotzmath::Statistic.

void glotzmath::Mean::AddData ( double  d  )  [virtual]

Reimplemented from glotzmath::Statistic.

void glotzmath::Mean::Clear (  )  [virtual]

Reimplemented from glotzmath::Statistic.

double glotzmath::Mean::GetValue (  )  [virtual]

Reimplemented from glotzmath::Statistic.

std::string glotzmath::Mean::GetName (  )  [virtual]

Reimplemented from glotzmath::Statistic.

void glotzmath::Mean::CombineWith ( Statistic s  )  [virtual]

Reimplemented from glotzmath::Statistic.


Member Data Documentation

double glotzmath::Mean::mSum [private]

double glotzmath::Mean::mCount [private]


The documentation for this class was generated from the following files:
Generated on Tue Feb 24 20:53:40 2009 by  doxygen 1.5.3