Average Class ReferenceSimple class for keeping track of the average of a stream of numbers.
More...
#include <Average.h>
List of all members.
Detailed Description
Simple class for keeping track of the average of a stream of numbers.
Polaris Base - See also:
- Average.h
Average.h
Average.cc
The Average class keeps track of the average of a stream of numbers by keeping track of how many times it was called and the overall sum of the numbers.
Definition at line 28 of file Average.h.
Constructor & Destructor Documentation
| Average::Average |
( |
const Average & |
|
) |
|
|
Member Function Documentation
| void Average::add |
( |
int |
value |
) |
|
|
| void Average::print |
( |
ostream & |
|
) |
const |
|
Friends And Related Function Documentation
| ostream& operator<< |
( |
ostream & |
o, |
|
|
const Average & |
avg |
|
) |
[friend] |
|
The documentation for this class was generated from the following files:
|