#include <rolling_sum.h>
Public Member Functions | |
void | add (T sample) |
RollingSum (size_t capacity) | |
T | sum () |
Private Attributes | |
boost::circular_buffer< T > | buffer_ |
T | sum_ |
Definition at line 8 of file rolling_sum.h.
RollingSum< T >::RollingSum | ( | size_t | capacity | ) | [inline] |
Definition at line 11 of file rolling_sum.h.
void RollingSum< T >::add | ( | T | sample | ) | [inline] |
Definition at line 17 of file rolling_sum.h.
T RollingSum< T >::sum | ( | ) | [inline] |
Definition at line 24 of file rolling_sum.h.
boost::circular_buffer<T> RollingSum< T >::buffer_ [private] |
Definition at line 30 of file rolling_sum.h.
T RollingSum< T >::sum_ [private] |
Definition at line 31 of file rolling_sum.h.