17#ifndef IGNITION_MATH_SIGNALSTATS_HH_
18#define IGNITION_MATH_SIGNALSTATS_HH_
24#include <ignition/math/config.hh>
30 inline namespace IGNITION_MATH_VERSION_NAMESPACE
33 class SignalStatisticPrivate;
51 public:
virtual double Value()
const = 0;
59 public:
virtual size_t Count()
const;
72#pragma warning(disable: 4251)
75 protected: std::unique_ptr<SignalStatisticPrivate>
dataPtr;
87 public:
virtual double Value()
const;
103 public:
virtual double Value()
const;
119 public:
virtual double Value()
const;
136 public:
virtual double Value()
const;
155 public:
virtual double Value()
const;
172 public:
virtual double Value()
const;
184 class SignalStatsPrivate;
211 public: std::map<std::string, double>
Map()
const;
249#pragma warning(disable: 4251)
252 private: std::unique_ptr<SignalStatsPrivate> dataPtr;
ignition/math/SignalStats.hh
Definition SignalStats.hh:153
virtual std::string ShortName() const
Get a short version of the name of this statistical measure.
virtual void InsertData(const double _data)
Add a new sample to the statistical measure.
virtual double Value() const
Get the current value of the statistical measure.
Computing the maximum value of a discretely sampled signal.
Definition SignalStats.hh:85
virtual double Value() const
Get the current value of the statistical measure.
virtual void InsertData(const double _data)
Add a new sample to the statistical measure.
virtual std::string ShortName() const
Get a short version of the name of this statistical measure.
Computing the mean value of a discretely sampled signal.
Definition SignalStats.hh:101
virtual double Value() const
Get the current value of the statistical measure.
virtual std::string ShortName() const
Get a short version of the name of this statistical measure.
virtual void InsertData(const double _data)
Add a new sample to the statistical measure.
Computing the minimum value of a discretely sampled signal.
Definition SignalStats.hh:117
virtual double Value() const
Get the current value of the statistical measure.
virtual void InsertData(const double _data)
Add a new sample to the statistical measure.
virtual std::string ShortName() const
Get a short version of the name of this statistical measure.
Computing the square root of the mean squared value of a discretely sampled signal.
Definition SignalStats.hh:134
virtual void InsertData(const double _data)
Add a new sample to the statistical measure.
virtual std::string ShortName() const
Get a short version of the name of this statistical measure.
virtual double Value() const
Get the current value of the statistical measure.
Statistical properties of a discrete time scalar signal.
Definition SignalStats.hh:38
SignalStatistic()
Constructor.
std::unique_ptr< SignalStatisticPrivate > dataPtr
Pointer to private data.
Definition SignalStats.hh:75
SignalStatistic(const SignalStatistic &_ss)
Copy constructor.
virtual void InsertData(const double _data)=0
Add a new sample to the statistical measure.
virtual std::string ShortName() const =0
Get a short version of the name of this statistical measure.
virtual ~SignalStatistic()
Destructor.
virtual size_t Count() const
Get number of data points in measurement.
virtual void Reset()
Forget all previous data.
virtual double Value() const =0
Get the current value of the statistical measure.
Collection of statistics for a scalar signal.
Definition SignalStats.hh:189
std::map< std::string, double > Map() const
Get the current values of each statistical measure, stored in a map using the short name as the key.
bool InsertStatistics(const std::string &_names)
Add multiple statistics.
void InsertData(const double _data)
Add a new sample to the statistical measures.
SignalStats()
Constructor.
bool InsertStatistic(const std::string &_name)
Add a new type of statistic.
~SignalStats()
Destructor.
SignalStats(const SignalStats &_ss)
Copy constructor.
SignalStats & operator=(const SignalStats &_s)
Assignment operator.
size_t Count() const
Get number of data points in first statistic.
void Reset()
Forget all previous data.
Computing the incremental variance of a discretely sampled signal.
Definition SignalStats.hh:170
virtual void InsertData(const double _data)
Add a new sample to the statistical measure.
virtual std::string ShortName() const
Get a short version of the name of this statistical measure.
virtual double Value() const
Get the current value of the statistical measure.