#include <Stats_T.h>
Inheritance diagram for OpenDDS::DCPS::Stats< DataType >:


Public Member Functions | |
| Stats (unsigned int amount=0, typename DataCollector< DataType >::OnFull type=DataCollector< DataType >::KeepOldest) | |
| Default constructor. | |
| Stats & | operator= (const Stats &rhs) |
| Assignment operator. | |
| void | reset () |
| Reset statistics to nil. | |
| void | add (DataType value) |
| long double | mean () const |
| Calculate the average value. | |
| long double | var () const |
| Calculate the variance value. | |
| DataType | minimum () const |
| Access the minimum value. | |
| DataType | maximum () const |
| Access the maximum value. | |
| unsigned long | n () const |
| Access the number of values accumulated. | |
Private Attributes | |
| unsigned long | n_ |
| DataType | minimum_ |
| DataType | maximum_ |
| long double | an_ |
| long double | bn_ |
| long double | cn_ |
| long double | variance_ |
| OpenDDS::DCPS::Stats< DataType >::Stats | ( | unsigned int | amount = 0, |
|
| typename DataCollector< DataType >::OnFull | type = DataCollector< DataType >::KeepOldest | |||
| ) | [inline] |
Default constructor.
| void OpenDDS::DCPS::Stats< DataType >::add | ( | DataType | value | ) | [inline] |
Accumulate a new value.
| value | the new value to be accumulated. |
| DataType OpenDDS::DCPS::Stats< DataType >::maximum | ( | ) | const [inline] |
Access the maximum value.
: return qNaN with no data.
| long double OpenDDS::DCPS::Stats< DataType >::mean | ( | ) | const [inline] |
Calculate the average value.
: return qNaN with no data.
| DataType OpenDDS::DCPS::Stats< DataType >::minimum | ( | ) | const [inline] |
Access the minimum value.
: return qNaN with no data.
| unsigned long OpenDDS::DCPS::Stats< DataType >::n | ( | ) | const [inline] |
Access the number of values accumulated.
| Stats< DataType > & OpenDDS::DCPS::Stats< DataType >::operator= | ( | const Stats< DataType > & | rhs | ) | [inline] |
Assignment operator.
| void OpenDDS::DCPS::Stats< DataType >::reset | ( | ) | [inline] |
Reset statistics to nil.
| long double OpenDDS::DCPS::Stats< DataType >::var | ( | ) | const [inline] |
Calculate the variance value.
long double OpenDDS::DCPS::Stats< DataType >::an_ [private] |
long double OpenDDS::DCPS::Stats< DataType >::bn_ [private] |
long double OpenDDS::DCPS::Stats< DataType >::cn_ [private] |
DataType OpenDDS::DCPS::Stats< DataType >::maximum_ [private] |
DataType OpenDDS::DCPS::Stats< DataType >::minimum_ [private] |
unsigned long OpenDDS::DCPS::Stats< DataType >::n_ [private] |
long double OpenDDS::DCPS::Stats< DataType >::variance_ [private] |
1.4.7