Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Public Member Functions | Public Attributes | Static Public Attributes | Related Functions

SgUctTreeStatistics Class Reference
[Monte Carlo tree search]

Statistical properties of a SgUctTree. More...

#include <SgUctTreeUtil.h>

List of all members.

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< SgUctValue,
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.

Detailed Description

Statistical properties of a SgUctTree.

Definition at line 21 of file SgUctTreeUtil.h.


Constructor & Destructor Documentation

SgUctTreeStatistics::SgUctTreeStatistics (  ) 

Definition at line 16 of file SgUctTreeUtil.cpp.

References Clear().


Member Function Documentation

void SgUctTreeStatistics::Clear (  ) 
void SgUctTreeStatistics::Compute ( const SgUctTree tree  ) 
void SgUctTreeStatistics::Write ( std::ostream &  out  )  const

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

Difference between move value and RAVE value.

Definition at line 33 of file SgUctTreeUtil.h.

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

Number of nodes that have a certain move count.

Definition at line 30 of file SgUctTreeUtil.h.

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

Definition at line 27 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 25 of file SgUctTreeUtil.h.

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


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


Sun Mar 13 2011 Doxygen 1.7.1