All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
ignition::math::Vector3Stats Class Reference

Collection of statistics for a Vector3 signal. More...

#include <ignition/math/Vector3Stats.hh>

Public Member Functions

 Vector3Stats ()
 Constructor. More...
 
 ~Vector3Stats ()
 Destructor. More...
 
void InsertData (const Vector3d &_data)
 Add a new sample to the statistical measures. More...
 
bool InsertStatistic (const std::string &_name)
 Add a new type of statistic. More...
 
bool InsertStatistics (const std::string &_names)
 Add multiple statistics. More...
 
SignalStats Mag () const
 Get statistics for magnitude component of signal. More...
 
SignalStats & Mag ()
 Get mutable reference to statistics for magnitude of signal. More...
 
void Reset ()
 Forget all previous data. More...
 
SignalStats X () const
 Get statistics for x component of signal. More...
 
SignalStats & X ()
 Get mutable reference to statistics for x component of signal. More...
 
SignalStats Y () const
 Get statistics for y component of signal. More...
 
SignalStats & Y ()
 Get mutable reference to statistics for y component of signal. More...
 
SignalStats Z () const
 Get statistics for z component of signal. More...
 
SignalStats & Z ()
 Get mutable reference to statistics for z component of signal. More...
 

Protected Attributes

Vector3StatsPrivate * dataPtr
 Pointer to private data. More...
 

Detailed Description

Collection of statistics for a Vector3 signal.

Constructor & Destructor Documentation

ignition::math::Vector3Stats::Vector3Stats ( )

Constructor.

ignition::math::Vector3Stats::~Vector3Stats ( )

Destructor.

Member Function Documentation

void ignition::math::Vector3Stats::InsertData ( const Vector3d &  _data)

Add a new sample to the statistical measures.

Parameters
[in]_dataNew signal data point.
bool ignition::math::Vector3Stats::InsertStatistic ( const std::string &  _name)

Add a new type of statistic.

Parameters
[in]_nameShort name of new statistic. Valid values include: "maxAbs" "mean" "rms"
Returns
True if statistic was successfully added, false if name was not recognized or had already been inserted.
bool ignition::math::Vector3Stats::InsertStatistics ( const std::string &  _names)

Add multiple statistics.

Parameters
[in]_namesComma-separated list of new statistics. For example, all statistics could be added with: "maxAbs,mean,rms"
Returns
True if all statistics were successfully added, false if any names were not recognized or had already been inserted.
SignalStats ignition::math::Vector3Stats::Mag ( ) const

Get statistics for magnitude component of signal.

Returns
Statistics for magnitude component of signal.
SignalStats& ignition::math::Vector3Stats::Mag ( )

Get mutable reference to statistics for magnitude of signal.

Returns
Statistics for magnitude of signal.
void ignition::math::Vector3Stats::Reset ( )

Forget all previous data.

SignalStats ignition::math::Vector3Stats::X ( ) const

Get statistics for x component of signal.

Returns
Statistics for x component of signal.
SignalStats& ignition::math::Vector3Stats::X ( )

Get mutable reference to statistics for x component of signal.

Returns
Statistics for x component of signal.
SignalStats ignition::math::Vector3Stats::Y ( ) const

Get statistics for y component of signal.

Returns
Statistics for y component of signal.
SignalStats& ignition::math::Vector3Stats::Y ( )

Get mutable reference to statistics for y component of signal.

Returns
Statistics for y component of signal.
SignalStats ignition::math::Vector3Stats::Z ( ) const

Get statistics for z component of signal.

Returns
Statistics for z component of signal.
SignalStats& ignition::math::Vector3Stats::Z ( )

Get mutable reference to statistics for z component of signal.

Returns
Statistics for z component of signal.

Member Data Documentation

Vector3StatsPrivate* ignition::math::Vector3Stats::dataPtr
protected

Pointer to private data.


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