#include <SgProbCut.h>
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 |
SgProbCut::SgProbCut | ( | ) |
Definition at line 61 of file SgProbCut.h.
References m_cutoff_sizes, m_enabled, m_threshold, and MAX_PROBCUT.
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 |
bool SgProbCut::IsEnabled | ( | ) | const |
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 | ) |
void SgProbCut::SetThreshold | ( | float | t | ) |
SgArray<int, MAX_PROBCUT+1> SgProbCut::m_cutoff_sizes [private] |
SgArray<SgArray<Cutoff, MAX_PROBCUT+1>, MAX_PROBCUT+1> SgProbCut::m_cutoffs [private] |
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] |