Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgUctTreeStatistics Class Reference
[Monte Carlo tree search]

#include <SgUctTreeUtil.h>

List of all members.


Detailed Description

Statistical properties of a SgUctTree.

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.


Constructor & Destructor Documentation

SgUctTreeStatistics::SgUctTreeStatistics (  ) 

Definition at line 17 of file SgUctTreeUtil.cpp.

References Clear().


Member Function Documentation

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<<().


Friends And Related Function Documentation

std::ostream & operator<< ( std::ostream &  out,
const SgUctTreeStatistics stat 
) [related]

Write a SgUctTreeStatistics.

Definition at line 71 of file SgUctTreeUtil.cpp.


Member Data Documentation

SgStatisticsExt<float,std::size_t> SgUctTreeStatistics::m_biasRave

Difference between move value and RAVE value.

Definition at line 34 of file SgUctTreeUtil.h.

Referenced by Clear(), Compute(), and Write().

std::size_t SgUctTreeStatistics::m_moveCounts[MAX_MOVECOUNT]

Number of nodes that have a certain move count.

Definition at line 31 of file SgUctTreeUtil.h.

Referenced by Clear(), Compute(), and Write().

std::size_t SgUctTreeStatistics::m_nuNodes

Definition at line 28 of file SgUctTreeUtil.h.

Referenced by Clear(), Compute(), and Write().

const std::size_t SgUctTreeStatistics::MAX_MOVECOUNT = 5 [static]

See m_posCounts.

Definition at line 26 of file SgUctTreeUtil.h.

Referenced by Clear(), Compute(), and Write().


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


17 Jun 2010 Doxygen 1.4.7