gstabsearch.h
来自「一个非常有用的开源代码」· C头文件 代码 · 共 36 行
H
36 行
#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;public: GStabSearch(GRealVectorCritic* pCritic, double dMin, double dRange); virtual ~GStabSearch(); virtual void Iterate(); void SetTolerance(double d) { m_dTolerance = d; }protected: void Reset();};#endif // __GSTABSEARCH_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?