#include <SlidingAverage.hh>
Public Member Functions | |
SlidingAverage (unsigned _length) | |
void | add_value (T value) |
T | sum () |
T | avg () |
Private Attributes | |
const unsigned | length |
unsigned | pt |
std::vector< T > | values |
T | current_sum |
Definition at line 17 of file SlidingAverage.hh.
|
inline |
Definition at line 19 of file SlidingAverage.hh.
|
inline |
Definition at line 21 of file SlidingAverage.hh.
|
inline |
Definition at line 32 of file SlidingAverage.hh.
|
inline |
Definition at line 28 of file SlidingAverage.hh.
|
private |
Definition at line 40 of file SlidingAverage.hh.
|
private |
Definition at line 37 of file SlidingAverage.hh.
|
private |
Definition at line 38 of file SlidingAverage.hh.
|
private |
Definition at line 39 of file SlidingAverage.hh.