#include <SgUctTreeUtil.h>
Definition at line 22 of file SgUctTreeUtil.h.
Public Member Functions | |
SgUctTreeStatistics () | |
void | Clear () |
void | Compute (const SgUctTree &tree) |
Clear statistics and traverse tree to compute statistics. | |
void | Write (std::ostream &out) const |
Public Attributes | |
std::size_t | m_nuNodes |
std::size_t | m_moveCounts [MAX_MOVECOUNT] |
Number of nodes that have a certain move count. | |
SgStatisticsExt< float, std::size_t > | m_biasRave |
Difference between move value and RAVE value. | |
Static Public Attributes | |
static const std::size_t | MAX_MOVECOUNT = 5 |
See m_posCounts. | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &out, const SgUctTreeStatistics &stat) |
Write a SgUctTreeStatistics. |
SgUctTreeStatistics::SgUctTreeStatistics | ( | ) |
void SgUctTreeStatistics::Clear | ( | ) |
Definition at line 22 of file SgUctTreeUtil.cpp.
References SgStatisticsExt< VALUE, COUNT >::Clear(), m_biasRave, m_moveCounts, m_nuNodes, and MAX_MOVECOUNT.
Referenced by Compute(), and SgUctTreeStatistics().
void SgUctTreeStatistics::Compute | ( | const SgUctTree & | tree | ) |
Clear statistics and traverse tree to compute statistics.
Definition at line 30 of file SgUctTreeUtil.cpp.
References SgStatisticsExt< VALUE, COUNT >::Add(), Clear(), SgUctSearch::InverseEval(), m_biasRave, m_moveCounts, m_nuNodes, and MAX_MOVECOUNT.
void SgUctTreeStatistics::Write | ( | std::ostream & | out | ) | const |
Definition at line 55 of file SgUctTreeUtil.cpp.
References m_biasRave, m_moveCounts, m_nuNodes, MAX_MOVECOUNT, and SgStatisticsExt< VALUE, COUNT >::Write().
Referenced by operator<<().
std::ostream & operator<< | ( | std::ostream & | out, | |
const SgUctTreeStatistics & | stat | |||
) | [related] |
SgStatisticsExt<float,std::size_t> SgUctTreeStatistics::m_biasRave |
std::size_t SgUctTreeStatistics::m_moveCounts[MAX_MOVECOUNT] |
std::size_t SgUctTreeStatistics::m_nuNodes |
const std::size_t SgUctTreeStatistics::MAX_MOVECOUNT = 5 [static] |