📄 gstabsearch.h
字号:
#ifndef __GSTABSEARCH_H__#define __GSTABSEARCH_H__#include "GSearch.h"// Each iteration performs a binary (divde-and-conquer) search.// Because the high-level divisions are typically less correlated// with the final result than the low-level divisions, it searches// through the space of possible "stabs" by toggling choices in// the order from high level to low level.class GStabSearch : public GRealVectorSearch{protected: int m_nDimensions; unsigned int m_nMask[4]; double m_dMin, m_dRange; double* m_pMins; double* m_pRanges; double* m_pVector; double m_dTolerance; int m_nCurrentDim; int m_nMaskPos; int m_nStabs;public: GStabSearch(GRealVectorCritic* pCritic, double dMin, double dRange); virtual ~GStabSearch(); virtual void Iterate(); void SetTolerance(double d) { m_dTolerance = d; } int GetStabCount() { return m_nStabs; }#ifndef NO_TEST_CODE static void Test();#endif // !NO_TEST_CODEprotected: void Reset();};#endif // __GSTABSEARCH_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -