Gin
Public Member Functions | List of all members
RollingAverage Class Reference

Keeps a rolling average of a series of numbers. More...

Public Member Functions

 RollingAverage (int numVals_)
 
double average (double nextValue)
 
double getAverage ()
 
void setAverage (double avg)
 

Detailed Description

Keeps a rolling average of a series of numbers.

Constructor & Destructor Documentation

◆ RollingAverage()

RollingAverage::RollingAverage ( int  numVals_)

Member Function Documentation

◆ average()

double RollingAverage::average ( double  nextValue)

◆ getAverage()

double RollingAverage::getAverage ( )

◆ setAverage()

void RollingAverage::setAverage ( double  avg)

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