Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Namespaces | Typedefs | Functions

SgUctValue.h File Reference

Defines the floating point type used in SgUctSearch. More...

#include <cmath>
#include <limits>
#include <boost/static_assert.hpp>
#include "SgStatistics.h"
#include "SgStatisticsVlt.h"

Go to the source code of this file.

Namespaces

namespace  SgUctValueUtil

Typedefs

typedef double SgUctValue
 The floating type used for mean values and counts in SgUctSearch.
typedef SgStatisticsBase
< SgUctValue, SgUctValue
SgUctStatistics
typedef SgStatisticsVltBase
< SgUctValue, SgUctValue
SgUctStatisticsVolatile

Functions

 BOOST_STATIC_ASSERT (!std::numeric_limits< SgUctValue >::is_integer)
template<typename T >
bool SgUctValueUtil::IsPrecise (T val)
 Check if floating point value is a precise representation of an integer.

Detailed Description

Defines the floating point type used in SgUctSearch.

Definition in file SgUctValue.h.


Typedef Documentation

Definition at line 35 of file SgUctValue.h.

Definition at line 37 of file SgUctValue.h.

The floating type used for mean values and counts in SgUctSearch.

The default type is double, but it is possible to use float to reduce the node size and to get some performance gains (especially on 32-bit systems). However, using float sets a practical limit on the number of simulations before the count and mean values go into "saturation". This maximum is given by 2^d-1 with d being the digits in the mantissa (=23 for IEEE 754 float's). The search will terminate when this number is reached.

Definition at line 30 of file SgUctValue.h.


Function Documentation

BOOST_STATIC_ASSERT ( !std::numeric_limits< SgUctValue >::is_integer   ) 


Sun Mar 13 2011 Doxygen 1.7.1