#include <RunningStatistics.h>
Inherits Marsyas::MarSystem.
Public Member Functions | |
| void | myProcess (realvec &in, realvec &out) |
| The core processing method of this MarSystem. | |
| RunningStatistics (const RunningStatistics &a) | |
| RunningStatistics (std::string name) | |
Private Member Functions | |
| void | addControls () |
| Add specific controls needed by this MarSystem. | |
| void | clear (void) |
| Clear/initialize the internal buffers. | |
| void | myUpdate (MarControlPtr sender) |
| Reads changed controls and sets up variables if necessary. | |
Private Attributes | |
| MarControlPtr | ctrl_clear_ |
| MarControlPtr for the clear control. | |
| MarControlPtr | ctrl_clearPerTick_ |
| MarControlPtr for the clearPerTick control. | |
| MarControlPtr | ctrl_enable_mean_ |
| MarControlPtr for enabling the mean. | |
| MarControlPtr | ctrl_enable_skewness_ |
| MarControlPtr for enabling the skewness. | |
| MarControlPtr | ctrl_enable_stddev_ |
| MarControlPtr for enabling the standard deviation. | |
| mrs_bool | enable_mean_ |
| Cache of the enable mean control value. | |
| mrs_bool | enable_skewsness_ |
| Cache of the enable skewness control value. | |
| mrs_bool | enable_stddev_ |
| Cache of the enable stddev control value. | |
| mrs_natural | samplecounter_ |
| Internal counter for counting the number of processed samples. | |
| realvec | sumx2Buffer_ |
| Internal buffer for keeping the running sum of sample^2. | |
| realvec | sumx3Buffer_ |
| Internal buffer for keeping the running sum of sample^3. | |
| realvec | sumxBuffer_ |
| Internal buffer for keeping the running sum. | |
Outputs the running average and standard deviation of all the input so far.
Controls:
Definition at line 48 of file RunningStatistics.h.
| RunningStatistics | ( | std::string | name | ) |
Add any specific controls needed by this MarSystem.
Definition at line 27 of file RunningStatistics.cpp.
References RunningStatistics::addControls().
| RunningStatistics | ( | const RunningStatistics & | a | ) |
All member MarControlPtr have to be explicitly reassigned in the copy constructor.
Definition at line 34 of file RunningStatistics.cpp.
References RunningStatistics::ctrl_clear_, RunningStatistics::ctrl_clearPerTick_, RunningStatistics::ctrl_enable_mean_, RunningStatistics::ctrl_enable_skewness_, and RunningStatistics::ctrl_enable_stddev_.
1.5.6