Calculates the mean, variance, and std deviation of a real-valued signal. More...
#include <signal_processing.h>
Public Member Functions | |
CStats () | |
Real | GetMean () const |
Returns the mean of the signal. More... | |
Real | GetVariance () const |
Returns the variance of the signal. More... | |
Real | GetStdDev () const |
Returns the std deviation of the signal. More... | |
void | Append (Real f_value) |
Appends a new piece of data and recalculates the statistics. More... | |
Calculates the mean, variance, and std deviation of a real-valued signal.
Definition at line 14 of file signal_processing.h.
argos::CStats::CStats | ( | ) |
Definition at line 8 of file signal_processing.cpp.
void argos::CStats::Append | ( | Real | f_value | ) |
Appends a new piece of data and recalculates the statistics.
f_value | The value to append. |
Definition at line 16 of file signal_processing.cpp.
|
inline |
Returns the mean of the signal.
Definition at line 24 of file signal_processing.h.
|
inline |
Returns the std deviation of the signal.
At least two pieces of data must have been inserted for the std deviation to be different from the default value, which is 0.
Definition at line 42 of file signal_processing.h.
Real argos::CStats::GetVariance | ( | ) | const |
Returns the variance of the signal.
At least two pieces of data must have been inserted for the variance to be different from the default value, which is 0.
Definition at line 30 of file signal_processing.cpp.