Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgProbCut Class Reference

#include <SgProbCut.h>

List of all members.


Detailed Description

Definition at line 23 of file SgProbCut.h.

Public Member Functions

 SgProbCut ()
void AddCutoff (const Cutoff &c)
bool GetCutoff (int deep, int index, Cutoff &cutoff)
float GetThreshold () const
bool IsEnabled () const
bool ProbCut (SgSearch &search, int depth, int alpha, int beta, SgSearchStack &moveStack, bool *isExactValue, int *value)
void SetEnabled (bool flag)
void SetThreshold (float t)

Static Public Attributes

static const int MAX_PROBCUT = 20

Private Attributes

float m_threshold
bool m_enabled
SgArray< SgArray< Cutoff,
MAX_PROBCUT+1 >, MAX_PROBCUT+1 > 
m_cutoffs
SgArray< int, MAX_PROBCUT+1 > m_cutoff_sizes

Classes

struct  Cutoff


Constructor & Destructor Documentation

SgProbCut::SgProbCut (  ) 

Definition at line 61 of file SgProbCut.h.

References m_cutoff_sizes, m_enabled, m_threshold, and MAX_PROBCUT.


Member Function Documentation

void SgProbCut::AddCutoff ( const Cutoff c  ) 

Definition at line 68 of file SgProbCut.h.

References SgProbCut::Cutoff::deep, m_cutoff_sizes, and m_cutoffs.

bool SgProbCut::GetCutoff ( int  deep,
int  index,
Cutoff cutoff 
)

Definition at line 75 of file SgProbCut.h.

References m_cutoff_sizes, m_cutoffs, and MAX_PROBCUT.

Referenced by ProbCut().

float SgProbCut::GetThreshold (  )  const

Definition at line 88 of file SgProbCut.h.

References m_threshold.

Referenced by ProbCut().

bool SgProbCut::IsEnabled (  )  const

Definition at line 98 of file SgProbCut.h.

References m_enabled.

Referenced by ProbCut().

bool SgProbCut::ProbCut ( SgSearch search,
int  depth,
int  alpha,
int  beta,
SgSearchStack moveStack,
bool *  isExactValue,
int *  value 
)

Definition at line 15 of file SgProbCut.cpp.

References SgProbCut::Cutoff::a, SgProbCut::Cutoff::b, SgSearch::DEPTH_UNIT, GetCutoff(), GetThreshold(), IsEnabled(), SgStack< T, SIZE >::PushAll(), SgMath::RoundToInt(), SgSearch::SearchEngine(), SetEnabled(), SG_ASSERT, SgSearch::SG_INFINITY, SgProbCut::Cutoff::shallow, SgProbCut::Cutoff::sigma, and SgStack< T, SIZE >::SwapWith().

void SgProbCut::SetEnabled ( bool  flag  ) 

Definition at line 93 of file SgProbCut.h.

References m_enabled.

Referenced by ProbCut().

void SgProbCut::SetThreshold ( float  t  ) 

Definition at line 83 of file SgProbCut.h.

References m_threshold.


Member Data Documentation

SgArray<int, MAX_PROBCUT+1> SgProbCut::m_cutoff_sizes [private]

Definition at line 58 of file SgProbCut.h.

Referenced by AddCutoff(), GetCutoff(), and SgProbCut().

SgArray<SgArray<Cutoff, MAX_PROBCUT+1>, MAX_PROBCUT+1> SgProbCut::m_cutoffs [private]

Definition at line 57 of file SgProbCut.h.

Referenced by AddCutoff(), and GetCutoff().

bool SgProbCut::m_enabled [private]

Definition at line 55 of file SgProbCut.h.

Referenced by IsEnabled(), SetEnabled(), and SgProbCut().

float SgProbCut::m_threshold [private]

Definition at line 54 of file SgProbCut.h.

Referenced by GetThreshold(), SetThreshold(), and SgProbCut().

const int SgProbCut::MAX_PROBCUT = 20 [static]

Definition at line 26 of file SgProbCut.h.

Referenced by GetCutoff(), and SgProbCut().


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


17 Jun 2010 Doxygen 1.4.7