H::Average Class Reference

Class for averaging things out over a number of iterations. More...

#include <Average.hpp>

Collaboration diagram for H::Average:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void push (double Value)
 Push a value.
double average ()
 Get the average.
 Average (int Size=10)
 Init constructor.
virtual ~Average ()
 Destructor.


Detailed Description

Class for averaging things out over a number of iterations.

Definition at line 61 of file Average.hpp.


Constructor & Destructor Documentation

Average::Average ( int  Size = 10  ) 

Init constructor.

Default Constructor.

Definition at line 51 of file Average.cpp.


Member Function Documentation

void Average::push ( double  Value  ) 

Push a value.

Push a value to be averaged.

Parameters:
Value The value

Definition at line 72 of file Average.cpp.

double Average::average ( void   ) 

Get the average.

Returns:
The average of all pushed values

Definition at line 88 of file Average.cpp.


The documentation for this class was generated from the following files:
Generated on Wed Nov 7 10:07:14 2007 for gizmod by  doxygen 1.5.3