Go to the documentation of this file.
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)
74 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;
248 #pragma warning(push)
249 #pragma warning(disable: 4251)
251 private: std::unique_ptr<SignalStatsPrivate> dataPtr;
SignalStatistic(const SignalStatistic &_ss)
Copy constructor.
virtual double Value() const =0
Get the current value of the statistical measure.
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 double Value() const
Get the current value of the statistical measure.
void InsertData(const double _data)
Add a new sample to the statistical measures.
virtual std::string ShortName() const
Get a short version of the name of this statistical measure.
virtual std::string ShortName() const
Get a short version of the name of this statistical measure.
~SignalStats()
Destructor.
virtual std::string ShortName() const
Get a short version of the name of this statistical measure.
void Reset()
Forget all previous data.
size_t Count() const
Get number of data points in first statistic.
Computing the minimum value of a discretely sampled signal.
Definition: SignalStats.hh:117
SignalStatistic()
Constructor.
virtual void InsertData(const double _data)
Add a new sample to the statistical measure.
virtual void InsertData(const double _data)
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.
bool InsertStatistics(const std::string &_names)
Add multiple statistics.
virtual void Reset()
Forget all previous data.
Collection of statistics for a scalar signal.
Definition: SignalStats.hh:189
SignalStats & operator=(const SignalStats &_s)
Assignment operator.
virtual void InsertData(const double _data)=0
Add a new sample to the statistical measure.
virtual double Value() const
Get the current value of the 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
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 size_t Count() const
Get number of data points in measurement.
virtual double Value() const
Get the current value of the statistical measure.
virtual ~SignalStatistic()
Destructor.
SignalStats(const SignalStats &_ss)
Copy constructor.
virtual void InsertData(const double _data)
Add a new sample to the statistical measure.
Computing the square root of the mean squared value of a discretely sampled signal.
Definition: SignalStats.hh:134
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
SignalStats()
Constructor.
virtual double Value() const
Get the current value of the statistical measure.
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.
Computing the maximum value of a discretely sampled signal.
Definition: SignalStats.hh:85
virtual std::string ShortName() const
Get a short version of the name of this statistical measure.
Computing the maximum of the absolute value of a discretely sampled signal. Also known as the maximum...
Definition: SignalStats.hh:153
virtual void InsertData(const double _data)
Add a new sample to the statistical measure.
bool InsertStatistic(const std::string &_name)
Add a new type of statistic.
Computing the incremental variance of a discretely sampled signal.
Definition: SignalStats.hh:170