#include <SgStatistics.h>
Also stores minimum and maximum values. The template parameters are the floating point type and the counter type, depending on the precision-memory tradeoff.
Definition at line 385 of file SgStatistics.h.
Public Member Functions | |
| SgStatisticsExt () | |
| void | Add (VALUE val) |
| void | Clear () |
| bool | IsDefined () const |
| const VALUE & | Mean () const |
| const COUNT & | Count () const |
| VALUE | Max () const |
| VALUE | Min () const |
| VALUE | Deviation () const |
| VALUE | Variance () const |
| void | Write (std::ostream &out) const |
Private Attributes | |
| SgStatistics< VALUE, COUNT > | m_statistics |
| VALUE | m_max |
| VALUE | m_min |
| SgStatisticsExt< VALUE, COUNT >::SgStatisticsExt | ( | ) |
| void SgStatisticsExt< VALUE, COUNT >::Add | ( | VALUE | val | ) |
Definition at line 425 of file SgStatistics.h.
References SgStatisticsExt< VALUE, COUNT >::m_max, SgStatisticsExt< VALUE, COUNT >::m_min, and SgStatisticsExt< VALUE, COUNT >::m_statistics.
Referenced by SgUctTreeStatistics::Compute(), and SgUctSearch::UpdateStatistics().
| void SgStatisticsExt< VALUE, COUNT >::Clear | ( | ) |
Definition at line 435 of file SgStatistics.h.
References SgStatisticsExt< VALUE, COUNT >::m_max, SgStatisticsExt< VALUE, COUNT >::m_min, and SgStatisticsExt< VALUE, COUNT >::m_statistics.
Referenced by SgUctTreeStatistics::Clear(), SgUctSearchStat::Clear(), and SgStatisticsExt< VALUE, COUNT >::SgStatisticsExt().
| const COUNT & SgStatisticsExt< VALUE, COUNT >::Count | ( | ) | const |
Definition at line 443 of file SgStatistics.h.
References SgStatisticsExt< VALUE, COUNT >::m_statistics.
| VALUE SgStatisticsExt< VALUE, COUNT >::Deviation | ( | ) | const |
Definition at line 449 of file SgStatistics.h.
References SgStatisticsExt< VALUE, COUNT >::m_statistics.
| bool SgStatisticsExt< VALUE, COUNT >::IsDefined | ( | ) | const |
Definition at line 455 of file SgStatistics.h.
References SgStatisticsExt< VALUE, COUNT >::m_statistics.
Referenced by SgStatisticsExt< VALUE, COUNT >::Write().
| VALUE SgStatisticsExt< VALUE, COUNT >::Max | ( | ) | const |
| const VALUE & SgStatisticsExt< VALUE, COUNT >::Mean | ( | ) | const |
Definition at line 467 of file SgStatistics.h.
References SgStatisticsExt< VALUE, COUNT >::m_statistics.
| VALUE SgStatisticsExt< VALUE, COUNT >::Min | ( | ) | const |
| VALUE SgStatisticsExt< VALUE, COUNT >::Variance | ( | ) | const |
Definition at line 479 of file SgStatistics.h.
References SgStatisticsExt< VALUE, COUNT >::m_statistics.
| void SgStatisticsExt< VALUE, COUNT >::Write | ( | std::ostream & | out | ) | const |
Definition at line 485 of file SgStatistics.h.
References SgStatisticsExt< VALUE, COUNT >::IsDefined(), SgStatisticsExt< VALUE, COUNT >::m_max, SgStatisticsExt< VALUE, COUNT >::m_min, and SgStatisticsExt< VALUE, COUNT >::m_statistics.
Referenced by SgUctTreeStatistics::Write(), and SgUctSearchStat::Write().
VALUE SgStatisticsExt< VALUE, COUNT >::m_max [private] |
Definition at line 413 of file SgStatistics.h.
Referenced by SgStatisticsExt< VALUE, COUNT >::Add(), SgStatisticsExt< VALUE, COUNT >::Clear(), SgStatisticsExt< VALUE, COUNT >::Max(), and SgStatisticsExt< VALUE, COUNT >::Write().
VALUE SgStatisticsExt< VALUE, COUNT >::m_min [private] |
Definition at line 415 of file SgStatistics.h.
Referenced by SgStatisticsExt< VALUE, COUNT >::Add(), SgStatisticsExt< VALUE, COUNT >::Clear(), SgStatisticsExt< VALUE, COUNT >::Min(), and SgStatisticsExt< VALUE, COUNT >::Write().
SgStatistics<VALUE,COUNT> SgStatisticsExt< VALUE, COUNT >::m_statistics [private] |
Definition at line 411 of file SgStatistics.h.
Referenced by SgStatisticsExt< VALUE, COUNT >::Add(), SgStatisticsExt< VALUE, COUNT >::Clear(), SgStatisticsExt< VALUE, COUNT >::Count(), SgStatisticsExt< VALUE, COUNT >::Deviation(), SgStatisticsExt< VALUE, COUNT >::IsDefined(), SgStatisticsExt< VALUE, COUNT >::Mean(), SgStatisticsExt< VALUE, COUNT >::Variance(), and SgStatisticsExt< VALUE, COUNT >::Write().