Maintains a running sum.
More...
#include <RunningSum.h>
|
| RunningSum (double decayConstant) |
| Constructs a m_is_running sum.
|
|
double | UpdateSum (double x) |
| Adds a value into the sum.
|
|
void | Clear () |
| clears the m_is_running sum
|
|
void | setDecayConstant (double decayConstant) |
| sets the decay constant
|
|
Rhesus::Toolkit::Control::RunningSum::RunningSum |
( |
double |
decayConstant | ) |
|
|
inline |
Constructs a m_is_running sum.
- Parameters
-
decayConstant | rate of decay |
void Rhesus::Toolkit::Control::RunningSum::setDecayConstant |
( |
double |
decayConstant | ) |
|
|
inline |
sets the decay constant
- Parameters
-
double Rhesus::Toolkit::Control::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: