17 #ifndef _GAZEBO_SIGNAL_STATS_HH_
18 #define _GAZEBO_SIGNAL_STATS_HH_
23 #include <ignition/math/SignalStats.hh>
27 #pragma GCC diagnostic push
28 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
39 class SignalStatisticPrivate;
60 public:
virtual double Value()
const = 0;
64 public:
virtual std::string ShortName()
const = 0;
68 public:
virtual size_t Count()
const;
72 public:
virtual void InsertData(
const double _data) = 0;
75 public:
virtual void Reset();
78 protected: std::unique_ptr<SignalStatisticPrivate>
dataPtr;
87 public:
virtual double Value()
const;
91 public:
virtual std::string ShortName()
const;
94 public:
virtual void InsertData(
const double _data);
104 public:
virtual double Value()
const;
108 public:
virtual std::string ShortName()
const;
111 public:
virtual void InsertData(
const double _data);
122 public:
virtual double Value()
const;
126 public:
virtual std::string ShortName()
const;
129 public:
virtual void InsertData(
const double _data);
134 class SignalStatsPrivate;
146 public:
SignalStats(
const ignition::math::SignalStats &_s);
162 public:
size_t Count()
const;
168 public: std::map<std::string, double> Map()
const;
172 public:
void InsertData(
const double _data);
183 public:
bool InsertStatistic(
const std::string &_name);
192 public:
bool InsertStatistics(
const std::string &_names);
195 public:
void Reset();
199 public: ignition::math::SignalStats Ign()
const;
204 public:
SignalStats &operator=(
const ignition::math::SignalStats &_s);
207 protected: std::unique_ptr<SignalStatsPrivate>
dataPtr;
213 #pragma GCC diagnostic pop
Computing the mean value of a discretely sampled signal.
Definition: SignalStats.hh:84
static const double GAZEBO_DEPRECATED(8.0) MAX_D
Double maximum value. This value will be similar to 1.79769e+308.
Definition: Helpers.hh:140
std::unique_ptr< SignalStatsPrivate > dataPtr
Pointer to private data.
Definition: SignalStats.hh:207
Collection of statistics for a scalar signal.
Definition: SignalStats.hh:138
Computing the square root of the mean squared value of a discretely sampled signal.
Definition: SignalStats.hh:101
std::unique_ptr< SignalStatisticPrivate > dataPtr
Pointer to private data.
Definition: SignalStats.hh:78
Computing the maximum of the absolute value of a discretely sampled signal.
Definition: SignalStats.hh:119
Statistical properties of a discrete time scalar signal.
Definition: SignalStats.hh:43