|
OpenDDS
Snapshot(2023/04/28-20:55)
|
#include <Stats_T.h>


Public Member Functions | |
| Stats (unsigned int amount=0, typename DataCollector< DataType >::OnFull type=DataCollector< DataType >::KeepOldest) | |
| Default constructor. More... | |
| Stats (const Stats &) | |
| Stats & | operator= (const Stats &rhs) |
| Default bitwise copy is sufficient. More... | |
| void | reset () |
| Reset statistics to nil. More... | |
| void | add (DataType value) |
| long double | mean () const |
| Calculate the average value. More... | |
| long double | var () const |
| Calculate the variance value. More... | |
| DataType | minimum () const |
| Access the minimum value. More... | |
| DataType | maximum () const |
| Access the maximum value. More... | |
| unsigned long | n () const |
| Access the number of values accumulated. More... | |
Public Member Functions inherited from OpenDDS::DCPS::DataCollector< DataType > | |
| DataCollector (unsigned int bound=0, OnFull onFull=KeepOldest) | |
| virtual | ~DataCollector () |
| Allow the class to be extended. More... | |
| void | collect (const DataType &datum) |
| Implement data collection. More... | |
| unsigned int | size () const |
| Amount of data actually stored. More... | |
| DataCollector< DataType > & | operator<< (DataType datum) |
| std::ostream & | insert (std::ostream &str) const |
| Implement insertion of collected data onto an ostream. More... | |
Private Attributes | |
| unsigned long | n_ |
| DataType | minimum_ |
| DataType | maximum_ |
| long double | an_ |
| long double | bn_ |
| long double | cn_ |
| long double | variance_ |
Additional Inherited Members | |
Public Types inherited from OpenDDS::DCPS::DataCollector< DataType > | |
| enum | OnFull |
| Selectors for behavior when buffer fills. More... | |
|
inline |
| OpenDDS::DCPS::Stats< DataType >::Stats | ( | const Stats< DataType > & | ) |
|
inline |
Accumulate a new value.
| value | the new value to be accumulated. |
Definition at line 133 of file Stats_T.h.
Referenced by OpenDDS::DCPS::WriterStats::add_stat().
|
inline |
Access the maximum value.
: return qNaN with no data.
Definition at line 248 of file Stats_T.h.
Referenced by OpenDDS::DCPS::WriterStats::get_stats().
|
inline |
Calculate the average value.
: return qNaN with no data.
Definition at line 207 of file Stats_T.h.
Referenced by OpenDDS::DCPS::WriterStats::get_stats().
|
inline |
Access the minimum value.
: return qNaN with no data.
Definition at line 239 of file Stats_T.h.
Referenced by OpenDDS::DCPS::WriterStats::get_stats().
|
inline |
Access the number of values accumulated.
Definition at line 257 of file Stats_T.h.
Referenced by OpenDDS::DCPS::WriterStats::get_stats(), and OpenDDS::DCPS::WriterStats::raw_data().
|
inline |
|
inline |
Reset statistics to nil.
Definition at line 119 of file Stats_T.h.
Referenced by OpenDDS::DCPS::WriterStats::reset_stats().
|
inline |
Calculate the variance value.
Definition at line 231 of file Stats_T.h.
Referenced by OpenDDS::DCPS::WriterStats::get_stats().
|
private |
Definition at line 73 of file Stats_T.h.
Referenced by OpenDDS::DCPS::Stats< double >::operator=().
|
private |
Definition at line 74 of file Stats_T.h.
Referenced by OpenDDS::DCPS::Stats< double >::operator=().
|
private |
Definition at line 75 of file Stats_T.h.
Referenced by OpenDDS::DCPS::Stats< double >::operator=().
|
private |
Definition at line 70 of file Stats_T.h.
Referenced by OpenDDS::DCPS::Stats< double >::operator=().
|
private |
Definition at line 69 of file Stats_T.h.
Referenced by OpenDDS::DCPS::Stats< double >::operator=().
|
private |
Definition at line 68 of file Stats_T.h.
Referenced by OpenDDS::DCPS::Stats< double >::operator=().
|
private |
Definition at line 76 of file Stats_T.h.
Referenced by OpenDDS::DCPS::Stats< double >::operator=().
1.8.13