iMSTK
Interactive Medical Simulation Toolkit
|
Class to accumulate values for determining a rolling average note that the buffer will be filled with 0
at initialization, therefore the average will ramp up slowly as the buffer is filled.
More...
#include <imstkAccumulationBuffer.h>
Public Member Functions | |
AccumulationBuffer (size_t capacity=1024) | |
size_t | getCapacity () const |
void | pushBack (T val) |
Pushes the value onto the buffer. | |
T | getAverage () const |
Class to accumulate values for determining a rolling average note that the buffer will be filled with 0
at initialization, therefore the average will ramp up slowly as the buffer is filled.
Definition at line 13 of file imstkAccumulationBuffer.h.
|
inline |
Definition at line 36 of file imstkAccumulationBuffer.h.
|
inline |
Definition at line 21 of file imstkAccumulationBuffer.h.