Public Member Functions | Protected Attributes | List of all members
gazebo::math::SignalStatistic Class Referenceabstract

Statistical properties of a discrete time scalar signal. More...

#include <math/gzmath.hh>

Inheritance diagram for gazebo::math::SignalStatistic:
Inheritance graph
[legend]

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

SignalStatisticPrivatedataPtr
 Pointer to private data. More...
 

Detailed Description

Statistical properties of a discrete time scalar signal.

Constructor & Destructor Documentation

gazebo::math::SignalStatistic::SignalStatistic ( )

Constructor.

virtual gazebo::math::SignalStatistic::~SignalStatistic ( )
virtual

Destructor.

Member Function Documentation

virtual size_t gazebo::math::SignalStatistic::Count ( ) const
virtual

Get number of data points in measurement.

Returns
Number of data points in measurement.
virtual void gazebo::math::SignalStatistic::InsertData ( const double  _data)
pure virtual

Add a new sample to the statistical measure.

Parameters
[in]_dataNew signal data point.

Implemented in gazebo::math::SignalMaxAbsoluteValue, gazebo::math::SignalRootMeanSquare, and gazebo::math::SignalMean.

virtual void gazebo::math::SignalStatistic::Reset ( )
virtual

Forget all previous data.

virtual std::string gazebo::math::SignalStatistic::ShortName ( ) const
pure virtual

Get a short version of the name of this statistical measure.

Returns
Short name of the statistical measure.

Implemented in gazebo::math::SignalMaxAbsoluteValue, gazebo::math::SignalRootMeanSquare, and gazebo::math::SignalMean.

virtual double gazebo::math::SignalStatistic::Value ( ) const
pure virtual

Get the current value of the statistical measure.

Returns
Current value of the statistical measure.

Implemented in gazebo::math::SignalMaxAbsoluteValue, gazebo::math::SignalRootMeanSquare, and gazebo::math::SignalMean.

Member Data Documentation

SignalStatisticPrivate* gazebo::math::SignalStatistic::dataPtr
protected

Pointer to private data.


The documentation for this class was generated from the following file: