Aria: ArRunningAverage Class Reference

- Main Page
- Classes
- Files
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# ArRunningAverage Class Reference

`#include <ariaUtil.h>`

List of all members.

## Detailed Description

This is a class for computing a running average of a number of elements.

## Public Member Functions
void | add (double val)
| Adds a number.
| ArRunningAverage (size_t numToAverage)
| Constructor, give it the number of elements you want to average.
void | clear (void)
| Clears the average.
double | getAverage (void) const
| Gets the average.
size_t | getCurrentNumAveraged (void)
| Gets the num averaged.
size_t | getNumToAverage (void) const
| Gets the number of elements.
void | setNumToAverage (size_t numToAverage)
| Sets the number of elements.
| ~ArRunningAverage ()
| Destructor.
## Protected Attributes
size_t | myNum
size_t | myNumToAverage
double | myTotal
std::list< double > | myVals

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

- ariaUtil.h