Statistical properties of a discrete time scalar signal. More...
#include <math/gzmath.hh>
Public Member Functions | |
SignalStatistic () | |
Constructor. More... | |
virtual | ~SignalStatistic () |
Destructor. More... | |
virtual size_t | Count () const |
Get number of data points in measurement. More... | |
virtual void | InsertData (const double _data)=0 |
Add a new sample to the statistical measure. More... | |
virtual void | Reset () |
Forget all previous data. More... | |
virtual std::string | ShortName () const =0 |
Get a short version of the name of this statistical measure. More... | |
virtual double | Value () const =0 |
Get the current value of the statistical measure. More... | |
Protected Attributes | |
SignalStatisticPrivate * | dataPtr |
Pointer to private data. More... | |
Statistical properties of a discrete time scalar signal.
gazebo::math::SignalStatistic::SignalStatistic | ( | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Get number of data points in measurement.
|
pure virtual |
Add a new sample to the statistical measure.
[in] | _data | New signal data point. |
Implemented in gazebo::math::SignalMaxAbsoluteValue, gazebo::math::SignalRootMeanSquare, and gazebo::math::SignalMean.
|
virtual |
Forget all previous data.
|
pure virtual |
Get a short version of the name of this statistical measure.
Implemented in gazebo::math::SignalMaxAbsoluteValue, gazebo::math::SignalRootMeanSquare, and gazebo::math::SignalMean.
|
pure virtual |
Get the current value of the statistical measure.
Implemented in gazebo::math::SignalMaxAbsoluteValue, gazebo::math::SignalRootMeanSquare, and gazebo::math::SignalMean.
|
protected |
Pointer to private data.