Maintains a running sum.
More...
#include <RunningSum.h>
|
| RunningSum (double decayConstant) |
| Constructs a running sum.
|
|
double | UpdateSum (double x) |
| Adds a value into the sum.
|
|
void | Clear () |
| clears the running sum
|
|
void | setDecayConstant (double decayConstant) |
| sets the decay constant
|
|
RunningSum::RunningSum |
( |
double |
decayConstant | ) |
|
|
inline |
Constructs a running sum.
- Parameters
-
decayConstant | rate of decay |
void RunningSum::setDecayConstant |
( |
double |
decayConstant | ) |
|
|
inline |
sets the decay constant
- Parameters
-
double RunningSum::UpdateSum |
( |
double |
x | ) |
|
|
inline |
Adds a value into the sum.
- Parameters
-
- Returns
- new value
The documentation for this class was generated from the following file: