Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgUctSearchStat Struct Reference

#include <SgUctSearch.h>

List of all members.


Detailed Description

Statistics of the last search performed by SgUctSearch.

Definition at line 451 of file SgUctSearch.h.

Public Member Functions

void Clear ()
void Write (std::ostream &out) const

Public Attributes

double m_time
std::size_t m_knowledge
 Number of nodes for which the knowledge threshold was exceeded.
double m_gamesPerSecond
 Games per second.
SgUctStatisticsExt m_gameLength
SgUctStatisticsExt m_movesInTree
SgUctStatistics m_aborted


Member Function Documentation

void SgUctSearchStat::Clear (  ) 

Definition at line 178 of file SgUctSearch.cpp.

References SgStatistics< VALUE, COUNT >::Clear(), SgStatisticsExt< VALUE, COUNT >::Clear(), m_aborted, m_gameLength, m_gamesPerSecond, m_knowledge, m_movesInTree, and m_time.

Referenced by SgUctSearch::StartSearch().

void SgUctSearchStat::Write ( std::ostream &  out  )  const

Definition at line 188 of file SgUctSearch.cpp.

References m_aborted, m_gameLength, m_gamesPerSecond, m_movesInTree, m_time, SgStatistics< VALUE, COUNT >::Mean(), and SgStatisticsExt< VALUE, COUNT >::Write().

Referenced by SgUctSearch::WriteStatistics().


Member Data Documentation

SgUctStatistics SgUctSearchStat::m_aborted

Definition at line 468 of file SgUctSearch.h.

Referenced by Clear(), SgUctSearch::UpdateStatistics(), and Write().

SgUctStatisticsExt SgUctSearchStat::m_gameLength

Definition at line 464 of file SgUctSearch.h.

Referenced by Clear(), SgUctSearch::UpdateStatistics(), and Write().

double SgUctSearchStat::m_gamesPerSecond

Games per second.

Useful values only if search time is higher than resolution of SgTime::Get().

Definition at line 462 of file SgUctSearch.h.

Referenced by SgUctSearch::CheckAbortSearch(), Clear(), SgUctSearch::Search(), SgUctSearch::UpdateCheckTimeInterval(), and Write().

std::size_t SgUctSearchStat::m_knowledge

Number of nodes for which the knowledge threshold was exceeded.

Definition at line 456 of file SgUctSearch.h.

Referenced by Clear(), SgUctSearch::PlayInTree(), and SgUctSearch::WriteStatistics().

SgUctStatisticsExt SgUctSearchStat::m_movesInTree

Definition at line 466 of file SgUctSearch.h.

Referenced by Clear(), SgUctSearch::UpdateStatistics(), and Write().

double SgUctSearchStat::m_time

Definition at line 453 of file SgUctSearch.h.

Referenced by Clear(), SgUctSearch::Search(), and Write().


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


17 Jun 2010 Doxygen 1.4.7